/* S38: «የእናቶች መድረክ» — letter cards, not a social-network wall. Uses the app tokens only (light and dark follow them). */
.cm { display: grid; gap: var(--s4); min-width: 0; }
.cm-tabs { display: flex; gap: var(--s2); overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.cm-tabs::-webkit-scrollbar { display: none; }
.cm-tabs .mk-pill { flex: none; }

.cm-hero { border-radius: var(--r-lg); padding: var(--s5); background: linear-gradient(155deg, var(--primary), color-mix(in srgb, var(--primary) 70%, var(--gold))); color: var(--on-primary); display: grid; gap: var(--s2); box-shadow: var(--shadow); }
.cm-hero-k { margin: 0; font-size: var(--fs-xs); opacity: .85; letter-spacing: .03em; }
.cm-hero-t { margin: 0; font-family: var(--f-ethi-display); font-size: var(--fs-lg); line-height: 1.4; text-wrap: balance; }
.cm-hero-btn { justify-self: start; background: var(--rose); color: var(--primary); border: 0; font-weight: 700; }
.cm-hero-btn:hover { background: var(--card); }

.cm-search { width: 100%; min-height: var(--tap); border: 1px solid var(--line); background: var(--card); border-radius: var(--r-md); padding: 0 var(--s4); font: inherit; color: var(--ink); }
.cm-cats { display: flex; gap: var(--s2); overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; padding-bottom: 2px; }
.cm-cats::-webkit-scrollbar { display: none; }
.cm-cats .chip { flex: none; white-space: nowrap; }
.cm-seg { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--sunk); border-radius: var(--r-md); padding: 3px; gap: 3px; }
.cm-seg button { border: 0; background: transparent; border-radius: var(--r-sm); min-height: 38px; font: inherit; font-size: var(--fs-sm); color: var(--ink-2); cursor: pointer; }
.cm-seg button[aria-pressed="true"] { background: var(--card); color: var(--primary); font-weight: 700; box-shadow: var(--shadow-sm); }
.cm-medical { display: flex; gap: var(--s2); align-items: flex-start; margin: 0; padding: var(--s3); border: 1px dashed var(--gold); border-radius: var(--r-md); background: color-mix(in srgb, var(--warn-bg) 45%, var(--card)); font-size: var(--fs-xs); color: var(--ink-2); line-height: var(--lh-ethi); }

/* the letter card */
.cm-list { display: grid; gap: var(--s3); min-width: 0; }
.cm-post { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s4) var(--s4) var(--s2); display: grid; gap: var(--s2); min-width: 0; box-shadow: var(--shadow-sm); }
.cm-post::before { content: ""; position: absolute; left: var(--s4); right: var(--s4); top: 0; height: 3px; border-radius: 0 0 3px 3px; background: linear-gradient(90deg, var(--gold), var(--rose)); }
.cm-who { display: flex; align-items: center; gap: var(--s2); min-width: 0; }
.cm-who-t { display: grid; min-width: 0; line-height: 1.35; }
.cm-who-t strong { font-size: var(--fs-sm); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-who-t span { font-size: var(--fs-xs); color: var(--ink-2); }
.cm-cat { margin-left: auto; flex: none; max-width: 45%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--fs-xs); background: var(--lav); color: var(--primary); border-radius: var(--r-pill); padding: 2px 10px; }
.cm-av { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; overflow: hidden; background: linear-gradient(135deg, var(--rose), var(--gold)); color: var(--on-primary); font-weight: 700; font-size: var(--fs-sm); }
.cm-av img { width: 100%; height: 100%; object-fit: cover; }
.cm-av-sm { width: 28px; height: 28px; font-size: var(--fs-xs); }
.cm-av-lg { width: 64px; height: 64px; font-size: var(--fs-lg); }
.cm-body { margin: 0; color: var(--ink); line-height: var(--lh-ethi); white-space: pre-wrap; overflow-wrap: anywhere; text-decoration: none; display: block; }
a.cm-body:hover { color: var(--ink); }
.cm-photos { border-radius: var(--r-md); overflow: hidden; background: var(--sunk); }
/* S38 (owner): never cropped — the photo keeps its own shape (tall phone photos too), at most 75% of the screen high */
.cm-photos img { display: block; width: 100%; height: auto; max-height: 75vh; object-fit: contain; max-width: 100%; margin: 0 auto; }
.cm-album { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 4px; scrollbar-width: none; position: relative; }
.cm-album::-webkit-scrollbar { display: none; }
.cm-slide { position: relative; margin: 0; }
.cm-album .cm-slide { flex: 0 0 100%; scroll-snap-align: center; display: grid; align-items: center; }
.cm-count-ph { position: absolute; top: 8px; right: 8px; background: var(--scrim); color: #fff; font-size: var(--fs-xs); border-radius: var(--r-pill); padding: 1px 8px; }
.cm-personal { margin: 0; font-size: var(--fs-xs); color: var(--ink-2); font-style: italic; }
.cm-status { margin: 0; font-size: var(--fs-xs); padding: var(--s2) var(--s3); border-radius: var(--r-sm); background: var(--warn-bg); color: var(--warn); }
.cm-st-rejected, .cm-st-hidden { background: var(--danger-bg); color: var(--danger); }
.cm-acts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; min-width: 0; border-top: 1px solid var(--line); padding-top: var(--s1); }
.cm-act { white-space: nowrap; display: inline-flex; justify-content: center; align-items: center; gap: 4px; min-height: 42px; padding: 0 var(--s1); border: 0; background: none; border-radius: var(--r-sm); font: inherit; font-size: var(--fs-xs); color: var(--ink-2); text-decoration: none; cursor: pointer; }
.cm-act:hover { background: var(--sunk); color: var(--ink); }
.cm-act.is-on { background: var(--lav); color: var(--primary); font-weight: 700; }
.cm-act b { font-weight: 700; }
.cm-more { margin-left: auto; font-size: var(--fs-md); min-width: 40px; justify-content: center; }
.cm-empty { text-align: center; color: var(--ink-2); padding: var(--s6) var(--s4); background: var(--card); border: 1px dashed var(--line-2); border-radius: var(--r-lg); margin: 0; }
.cm-more-row { display: flex; justify-content: center; }
.cm-soon, .cm-thanks { text-align: center; }
.cm-soon .mk-list { text-align: start; }
.cm-thanks .btn-row, .cm-soon .btn-row { justify-content: center; }

/* comments */
.cm-detail { min-width: 0; }
.cm-comments { display: grid; gap: var(--s2); min-width: 0; }
.cm-comments h2 { font-size: var(--fs-md); margin: var(--s2) 0 0; }
.cm-c { display: flex; gap: var(--s2); align-items: flex-start; min-width: 0; }
.cm-c-reply { margin-inline-start: 36px; }
.cm-c-b { flex: 1; min-width: 0; }
.cm-c-b p { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: 4px var(--r-md) var(--r-md) var(--r-md); padding: var(--s2) var(--s3); font-size: var(--fs-sm); line-height: var(--lh-ethi); overflow-wrap: anywhere; white-space: pre-wrap; }
.cm-c-b strong { display: block; font-size: var(--fs-xs); color: var(--primary); }
.cm-c.is-pending .cm-c-b p { border-style: dashed; opacity: .85; }
.cm-c-meta { display: block; font-size: var(--fs-xs); color: var(--ink-2); margin: 2px 0 0 var(--s2); }
.cm-c-meta em { font-style: normal; color: var(--warn); }
.cm-link { border: 0; background: none; padding: 0; font: inherit; color: var(--primary); text-decoration: underline; cursor: pointer; min-height: 32px; }
.cm-compose { position: sticky; bottom: calc(var(--s2) + env(safe-area-inset-bottom, 0px)); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s2); align-items: end; background: var(--bg); padding: var(--s2) 0; }
.cm-compose textarea { width: 100%; min-height: var(--tap); max-height: 160px; resize: vertical; border: 1px solid var(--line-2); border-radius: var(--r-md); padding: var(--s2) var(--s3); font: inherit; background: var(--card); color: var(--ink); }
.cm-replying { grid-column: 1 / -1; margin: 0; font-size: var(--fs-xs); color: var(--ink-2); }

/* forms */
.cm-form { display: grid; gap: var(--s3); min-width: 0; }
.cm-form h2 { margin: 0; }
.cm-fs { border: 0; padding: 0; margin: 0; display: grid; gap: var(--s2); min-width: 0; }
.cm-fs legend { font-weight: 600; font-size: var(--fs-sm); margin-bottom: var(--s2); padding: 0; }
.cm-cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--s2); }
.cm-opt { position: relative; display: block; cursor: pointer; }
.cm-opt input { position: absolute; opacity: 0; inset: 0; }
.cm-opt span { display: flex; align-items: center; min-height: var(--tap); padding: var(--s2) var(--s3); border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--card); font-size: var(--fs-sm); }
.cm-opt input:checked + span { border-color: var(--primary); background: var(--lav); color: var(--primary); font-weight: 700; }
.cm-opt input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.cm-count { display: block; text-align: end; color: var(--ink-2); font-size: var(--fs-xs); }
.cm-thumbs { display: flex; flex-wrap: wrap; gap: var(--s2); }
.cm-thumbs:empty { display: none; }
.cm-thumb { position: relative; width: 84px; height: 84px; border-radius: var(--r-sm); overflow: hidden; background: var(--sunk); }
.cm-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cm-thumb button { position: absolute; top: 4px; right: 4px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: var(--scrim); color: #fff; cursor: pointer; }
.cm-up { display: grid; justify-items: center; gap: 2px; padding: var(--s4); border: 1.5px dashed var(--gold); border-radius: var(--r-md); background: var(--card); color: var(--gold-ink); cursor: pointer; text-align: center; font-weight: 600; }
.cm-up small { font-weight: 400; color: var(--ink-2); }
.cm-check { display: flex; gap: var(--s2); align-items: center; font-size: var(--fs-sm); min-height: var(--tap); }
.cm-check input { width: 22px; height: 22px; accent-color: var(--primary); }
.cm-rules { margin: 0; padding-inline-start: var(--s5); font-size: var(--fs-xs); color: var(--ink-2); line-height: var(--lh-ethi); }
.cm-msg { margin: 0; color: var(--danger); font-size: var(--fs-sm); }
.cm-msg:empty { display: none; }
.cm-preview { display: grid; gap: var(--s3); }
.cm-preview h2 { margin: 0; font-size: var(--fs-md); }

/* the ⋯ sheet */
.cm-sheet { border: 0; padding: var(--s3) var(--s4) calc(var(--s5) + env(safe-area-inset-bottom, 0px)); margin: auto auto 0; width: min(560px, 100%); max-width: 100%; border-radius: var(--r-lg) var(--r-lg) 0 0; background: var(--bg); color: var(--ink); box-shadow: var(--shadow-lg); }
.cm-sheet::backdrop { background: var(--scrim); }
.cm-sheet h2 { margin: 0 0 var(--s1); font-size: var(--fs-md); font-family: var(--f-ethi-display); color: var(--primary); }
.cm-grab { width: 44px; height: 4px; border-radius: 4px; background: var(--line-2); margin: 0 auto var(--s3); }
.cm-x { position: absolute; top: var(--s2); right: var(--s2); width: 40px; height: 40px; border: 0; background: none; font-size: 18px; color: var(--ink-2); cursor: pointer; border-radius: 50%; }
.cm-report { display: grid; gap: var(--s2); margin: var(--s3) 0; }
.cm-radio { display: flex; align-items: center; gap: var(--s2); min-height: var(--tap); padding: 0 var(--s3); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--card); font-size: var(--fs-sm); cursor: pointer; }
.cm-radio input { width: 20px; height: 20px; accent-color: var(--primary); }
.cm-sheet-list { display: grid; border-top: 1px solid var(--line); margin-top: var(--s2); }
.cm-sheet-row { display: flex; align-items: center; gap: var(--s2); min-height: 48px; border: 0; background: none; font: inherit; font-size: var(--fs-sm); color: var(--ink); text-decoration: none; text-align: start; cursor: pointer; border-bottom: 1px solid var(--line); padding: 0 var(--s1); }
.cm-danger { color: var(--danger); }
.cm-confirm { margin-top: var(--s3); }

/* profile */
.cm-pf { display: grid; gap: var(--s3); }
.cm-pf-top { display: flex; align-items: center; gap: var(--s3); min-width: 0; }
.cm-pf-top h2 { margin: 0; font-family: var(--f-ethi-display); color: var(--primary); }
.cm-pf-top p { margin: 0; }
.cm-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s2); text-align: center; }
.cm-stats div { background: var(--sunk); border-radius: var(--r-md); padding: var(--s2); font-size: var(--fs-xs); color: var(--ink-2); }
.cm-stats b { display: block; font-size: var(--fs-md); color: var(--primary); }
.cm-switch { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); min-height: var(--tap); padding: 0 var(--s3); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--card); font-size: var(--fs-sm); cursor: pointer; }
.cm-switch input { width: 22px; height: 22px; accent-color: var(--primary); flex: none; }
.cm-blocks { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s2); }
.cm-blocks li { display: flex; align-items: center; gap: var(--s2); min-width: 0; }
.cm-blocks li span { flex: 1; min-width: 0; }
.cm-ban { margin: 0; }

@media (prefers-reduced-motion: reduce) { .cm-sheet { transition: none; } }

/* S38 web-55 (owner): Facebook style — feed, comments, New post, profile */
.cm-composer { display: flex; align-items: center; gap: var(--s2); padding: var(--s3); background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); text-decoration: none; color: var(--ink-2); }
.cm-composer-in { flex: 1; min-width: 0; border: 1px solid var(--line-2); border-radius: var(--r-pill); padding: 9px var(--s4); font-size: var(--fs-sm); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-composer-ph { font-size: 22px; }
.cm-icon { flex: none; width: 36px; height: 36px; border: 0; background: none; border-radius: 50%; color: var(--ink-2); font-size: 17px; cursor: pointer; display: grid; place-items: center; }
.cm-icon:hover { background: var(--sunk); }
.cm-who-t { flex: 1; }
.cm-who-t span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-av-xl { width: 112px; height: 112px; font-size: 40px; border: 4px solid var(--bg); }
/* post */
.cm-body { white-space: pre-wrap; overflow-wrap: anywhere; }
.cm-more-link { font-weight: 600; color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.cm-post .cm-photos { display: flex; margin-inline: calc(-1 * var(--s4)); border-radius: 0; text-decoration: none; }
.cm-acts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); padding-top: 2px; }
.cm-act { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: var(--tap); border: 0; background: none; border-radius: var(--r-md); color: var(--ink-2); font: inherit; font-size: var(--fs-sm); font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap; overflow: hidden; }
.cm-act:hover { background: var(--sunk); }
.cm-act span { overflow: hidden; text-overflow: ellipsis; }
.cm-act.is-on { color: var(--primary); }
/* comments: Facebook grey bubbles, everyone on the left */
.cm-comments { display: grid; gap: var(--s3); padding: var(--s2) 0; }
.cm-c-b { flex: 0 1 auto; max-width: calc(100% - 36px); }
.cm-c-b p { background: var(--sunk); border: 0; border-radius: 18px; padding: var(--s2) var(--s3); }
.cm-c-b strong { display: block; font-size: var(--fs-xs); color: var(--ink); font-weight: 700; }
.cm-c.is-pending .cm-c-b p { outline: 1px dashed var(--line-2); }
.cm-c-meta { margin: 2px 0 0 var(--s3); font-weight: 600; }
.cm-c-meta .cm-link { font-weight: 700; }
.cm-nocomment { text-align: center; }
.cm-compose { display: flex; align-items: flex-end; gap: var(--s2); background: var(--bg); border-top: 1px solid var(--line); border-radius: 0; padding: var(--s2) 0; flex-wrap: wrap; }
.cm-compose .cm-replying { flex: 1 0 100%; margin: 0; font-size: var(--fs-xs); color: var(--ink-2); }
.cm-compose .cm-av { align-self: center; }
.cm-compose textarea { flex: 1; min-width: 0; border: 0; background: var(--sunk); border-radius: 20px; resize: none; min-height: 40px; max-height: 140px; padding: 10px var(--s3); }
.cm-send { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 0; background: none; color: var(--primary); font-size: 20px; cursor: pointer; }
.cm-send:hover { background: var(--sunk); }
@media (max-width: 899px) { .cm-compose { bottom: calc(74px + env(safe-area-inset-bottom, 0px)); } }   /* above the bottom bar */
/* New post */
.cm-new { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s3); }
.cm-new-top { position: sticky; top: 0; z-index: 2; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--s2); background: var(--bg); padding: var(--s2) 0; border-bottom: 1px solid var(--line); }
.cm-new-top h1 { margin: 0; font-size: var(--fs-md); text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-post-btn { min-height: 36px; padding: 0 var(--s4); border-radius: var(--r-md); }
.cm-new-who { display: flex; align-items: center; gap: var(--s2); min-width: 0; }
.cm-new-who > div { display: grid; min-width: 0; }
.cm-new-who span { font-size: var(--fs-xs); }
.cm-new-chips { display: flex; gap: var(--s2); overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.cm-chipopt { flex: none; cursor: pointer; position: relative; }
.cm-chipopt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; }
.cm-chipopt span { display: inline-block; padding: 6px 14px; border-radius: var(--r-pill); border: 1px solid var(--line-2); background: var(--card); font-size: var(--fs-sm); white-space: nowrap; }
.cm-chipopt input:checked + span { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.cm-chipopt input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }
.cm-new-text { width: 100%; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: var(--fs-lg); line-height: var(--lh-ethi); resize: vertical; min-height: 140px; padding: 0; }
.cm-new-text:focus { outline: none; }
.cm-new .cm-count { justify-self: end; font-size: var(--fs-xs); color: var(--ink-2); }
.cm-new-media { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: var(--s2); }
.cm-new-media [data-new] { display: contents; }
.cm-new-media .cm-thumb { aspect-ratio: 1; }
.cm-addmedia { aspect-ratio: 1; display: grid; place-items: center; text-align: center; border: 1px dashed var(--line-2); border-radius: var(--r-md); background: var(--sunk); font-size: var(--fs-sm); font-weight: 600; cursor: pointer; padding: var(--s2); }
.cm-photo-note { margin: 0; font-size: var(--fs-xs); }
/* profile */
.cm-pfb { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; gap: var(--s1); padding-bottom: var(--s3); border-bottom: 1px solid var(--line); }
.cm-pfb-cover { justify-self: stretch; height: 120px; border-radius: var(--r-lg); background: linear-gradient(135deg, var(--lav), var(--rose), var(--gold)); }
.cm-pfb-av { margin-top: -64px; }
.cm-pfb h1 { margin: var(--s1) 0 0; font-family: var(--f-ethi-display); font-size: var(--fs-xl); overflow-wrap: anywhere; }
.cm-pfb-stats { margin: 0; font-size: var(--fs-sm); color: var(--ink-2); }
.cm-pfb-stats b { color: var(--ink); }
.cm-pfb-bio, .cm-pfb-meta { margin: 0; max-width: 40ch; overflow-wrap: anywhere; }
.cm-pfb-meta { font-size: var(--fs-sm); color: var(--ink-2); }
.cm-pfb-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s2); margin-top: var(--s2); }
.cm-pfb-posts { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s3); }
.cm-pfb-posts h2 { margin: var(--s2) 0 0; font-size: var(--fs-md); }
.cm-settings summary { cursor: pointer; font-weight: 600; min-height: var(--tap); display: flex; align-items: center; }
.cm-erase { margin-top: var(--s3); }
@media (max-width: 420px) { .cm-act { font-size: 13px; gap: 4px; padding: 0 2px; } }

/* S39 (owner): «ልዩ ፀጋ ቤተሰብ» — family feed. Stage circles, composer with quick buttons, our pinned posts, stage badges,
   type-first New post, «ስሜ ሳይታይ», profile tabs. All six circles fit a 360 px phone without scrolling. */
.cm-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); min-width: 0; }
.cm-head h1 { margin: 0; font-family: var(--f-ethi-display); font-size: var(--fs-xl); color: var(--primary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.cm-head-acts { display: flex; gap: var(--s1); flex: none; }
.cm-me-link { text-decoration: none; }
.cm-composer-card { display: grid; gap: var(--s2); padding: var(--s3); background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); }
.cm-composer-card .cm-composer { padding: 0; border: 0; background: none; }
.cm-quick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); padding-top: var(--s2); }
.cm-quick a { display: flex; align-items: center; justify-content: center; gap: 4px; min-height: 40px; border-radius: var(--r-md); color: var(--ink-2); font-size: var(--fs-sm); font-weight: 600; text-decoration: none; white-space: nowrap; }
.cm-quick a:hover { background: var(--sunk); }
.cm-circles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; }
.cm-circle { display: grid; justify-items: center; gap: 3px; min-width: 0; padding: 0; border: 0; background: none; color: var(--ink); font: inherit; font-size: 11.5px; line-height: 1.25; text-align: center; cursor: pointer; }
.cm-circle span { display: grid; place-items: center; width: 46px; height: 46px; max-width: 100%; aspect-ratio: 1; border-radius: 50%; font-size: 20px; background: var(--card); border: 2px solid var(--rose); box-shadow: 0 0 0 2px var(--bg) inset; }
.cm-circle[aria-pressed="true"] span { background: var(--primary); border-color: var(--primary); }
.cm-circle[aria-pressed="true"] { color: var(--primary); font-weight: 700; }
.cm-circle:focus-visible span { outline: 2px solid var(--primary); outline-offset: 2px; }
.cm-medical .cm-icon { margin-inline-start: auto; width: 28px; height: 28px; font-size: 13px; }
.cm-sortrow { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); }
.cm-sortrow b { color: var(--primary); }
.cm-sort { min-height: 36px; border: 1px solid var(--line-2); border-radius: var(--r-pill); background: var(--card); color: var(--ink); font: inherit; font-size: var(--fs-sm); padding: 0 var(--s3); }
.cm-pinned:empty { display: none; }
.cm-pinned { display: grid; gap: var(--s3); }
.cm-who-t strong { display: flex; align-items: center; gap: 6px; min-width: 0; }
.cm-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.cm-badge { flex: none; font-size: 11px; font-weight: 600; background: var(--lav); color: var(--primary); border-radius: var(--r-pill); padding: 1px 8px; white-space: nowrap; }
.cm-badge-off { background: linear-gradient(90deg, var(--gold), var(--rose)); color: #3A1A20; }
.cm-av-brand { background: linear-gradient(135deg, var(--gold), var(--rose)); color: #3A1A20; }
.cm-av-anon { background: var(--sunk); color: var(--ink-2); }
.cm-official { border-color: var(--gold); }
.cm-cta { display: flex; justify-content: flex-end; padding-bottom: var(--s2); }
.cm-q { border-inline-start: 3px solid var(--gold); }
.cm-health { margin: 0; font-size: var(--fs-xs); color: var(--warn); background: var(--warn-bg); border-radius: var(--r-sm); padding: 4px var(--s2); }
.cm-anon-note { margin: 0; font-size: var(--fs-xs); color: var(--ink-2); }
.cm-act .tabular { margin-inline-start: 2px; }
/* New post */
.cm-fs2 { border: 0; margin: 0; padding: 0; display: grid; gap: var(--s2); min-width: 0; }
.cm-fs2 legend { padding: 0; margin-bottom: var(--s2); font-size: var(--fs-sm); color: var(--ink-2); }
.cm-types { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s2); }
.cm-type { position: relative; cursor: pointer; min-width: 0; }
.cm-type input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; }
.cm-type span { display: grid; gap: 2px; height: 100%; padding: var(--s3) var(--s2); border: 1.5px solid var(--line); border-radius: var(--r-md); background: var(--card); }
.cm-type b { font-size: var(--fs-sm); }
.cm-type small { font-size: 11.5px; color: var(--ink-2); }
.cm-type input:checked + span { border-color: var(--primary); background: color-mix(in srgb, var(--lav) 60%, var(--card)); }
.cm-type input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }
.cm-new .cm-new-chips { flex-wrap: wrap; overflow: visible; }
.cm-new .cm-new-text { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--card); padding: var(--s3); font-size: var(--fs-md); min-height: 120px; }
.cm-new .cm-new-text:focus { outline: 2px solid var(--primary); outline-offset: 1px; }
.cm-anon { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); padding: var(--s3); border-radius: var(--r-md); background: var(--sunk); cursor: pointer; }
.cm-anon span { display: grid; gap: 2px; min-width: 0; }
.cm-anon small { font-size: var(--fs-xs); color: var(--ink-2); }
.cm-anon input { flex: none; appearance: none; width: 44px; height: 26px; border-radius: 13px; background: var(--line-2); position: relative; cursor: pointer; margin: 0; transition: background .2s; }
.cm-anon input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--card); transition: transform .2s; }
.cm-anon input:checked { background: var(--primary); }
.cm-anon input:checked::after { transform: translateX(18px); }
.cm-anon input:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
/* her page */
.cm-pfb-stats { display: flex; justify-content: center; gap: var(--s5); margin: var(--s2) 0 0; font-size: var(--fs-sm); color: var(--ink-2); text-align: center; }
.cm-pfb-stats b { display: block; font-size: var(--fs-md); color: var(--primary); }
.cm-pfb p { margin: 0; }
.cm-pfb-btns { flex-wrap: nowrap; justify-self: stretch; }
.cm-pfb-btns .btn-primary { flex: 1; }
.cm-gear { flex: none; }
.cm-ptabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.cm-ptabs button { min-height: var(--tap); border: 0; border-bottom: 2px solid transparent; background: none; font: inherit; font-size: var(--fs-sm); color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.cm-ptabs button[aria-selected="true"] { color: var(--primary); border-bottom-color: var(--primary); font-weight: 700; }
.cm-ptab { display: grid; gap: var(--s3); min-width: 0; }
.cm-pgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; }
.cm-pgrid a { display: block; aspect-ratio: 1; overflow: hidden; background: var(--sunk); border-radius: 4px; }
.cm-pgrid img { width: 100%; height: 100%; object-fit: cover; }
@media (prefers-reduced-motion: reduce) { .cm-anon input, .cm-anon input::after { transition: none; } }
@media (max-width: 899px) { .cm-new-top { top: calc(60px + env(safe-area-inset-top, 0px)); } }   /* below the app's top bar on phones */

/* S43: mothers' groups — community tabs, group rows, the six-step form, the group page and its members */
.cm-tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin: var(--s2) 0 var(--s3); padding-bottom: 2px; border-bottom: 1px solid var(--line); }
.cm-tabs::-webkit-scrollbar { display: none; }
.cm-tab { flex: none; padding: 9px 12px; font-size: var(--fs-sm); font-weight: 600; color: var(--ink-2); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -3px; white-space: nowrap; }
.cm-tab[aria-current="page"] { color: var(--primary); border-bottom-color: var(--primary); }
.cm-tab:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 6px; }
.cm-dot { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--primary); color: var(--on-primary); font-size: 11px; }
.cm-gtile { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; line-height: 1; }
.cm-gtile-xs { width: 22px; height: 22px; border-radius: 6px; font-size: 13px; }
.cm-gtile-lg { width: 64px; height: 64px; border-radius: 18px; font-size: 32px; }
.cm-gc-rose { background: #E8C9C2; } .cm-gc-burgundy { background: #6B4148; } .cm-gc-gold { background: #D9BFA9; }
.cm-gc-clay { background: #C98B7A; } .cm-gc-sand { background: #E9D9C4; } .cm-gc-ivory { background: #F8F1E8; box-shadow: inset 0 0 0 1px var(--line-2); }
.cm-gline { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-xs); font-weight: 600; color: var(--ink-2); text-decoration: none; min-width: 0; }
.cm-gline span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-gline-in { display: flex; margin-top: 2px; }
.cm-pinline { margin: 0; font-size: var(--fs-xs); font-weight: 600; color: var(--gold-ink, var(--ink-2)); }
.cm-removed { opacity: .7; border-style: dashed; }
.cm-g-top { display: grid; gap: 6px; margin-bottom: var(--s3); } .cm-g-top .btn { justify-self: start; }
.cm-g-find { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s2); margin-bottom: var(--s3); }
.cm-g-find .cm-search { margin: 0; } .cm-g-find select { max-width: 46vw; }
.cm-gsec h2 { font-size: var(--fs-md, 1rem); margin: var(--s4) 0 var(--s2); }
.cm-glist { display: grid; gap: var(--s2); }
.cm-grow { display: flex; align-items: center; gap: var(--s3); padding: var(--s3); background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); min-width: 0; }
.cm-grow-t { flex: 1; min-width: 0; display: grid; gap: 2px; color: var(--ink); text-decoration: none; }
.cm-grow-t b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .cm-grow-t span { font-size: var(--fs-xs); color: var(--ink-2); }
.cm-grow .btn { flex: none; }
.cm-gstate { flex: none; font-size: var(--fs-xs); font-weight: 600; color: var(--ink-2); padding: 4px 10px; border-radius: var(--r-pill); background: var(--sunk, var(--bg)); }
.cm-gstate-in { color: var(--primary); }
.cm-steps { display: flex; gap: 4px; margin: var(--s2) 0 var(--s3); } .cm-steps i { flex: 1; height: 4px; border-radius: 2px; background: var(--line-2); } .cm-steps i.is-done { background: var(--primary); }
.cm-gform .field { display: grid; gap: 6px; } .cm-gform .field .input { width: 100%; }
.cm-gnav { margin-top: var(--s4); } .cm-gnav .btn { flex: 1; }
.cm-gicons, .cm-gcolors { display: flex; flex-wrap: wrap; gap: 8px; margin: var(--s2) 0; }
.cm-gpick { position: relative; cursor: pointer; } .cm-gpick input { position: absolute; opacity: 0; inset: 0; margin: 0; }
.cm-gpick > span[aria-hidden] { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; font-size: 22px; border: 2px solid transparent; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.cm-gpick input:checked + span { border-color: var(--primary); } .cm-gpick input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }
.cm-gpreview { display: flex; align-items: center; gap: var(--s3); margin-top: var(--s2); } .cm-thanks .cm-gpreview { justify-content: center; }
.cm-ghead { position: relative; margin: 0 0 var(--s2); border-radius: var(--r-lg); overflow: hidden; background: var(--card); border: 1px solid var(--line); }
.cm-ghead-band { height: 64px; } .cm-ghead.cm-gc-ivory .cm-ghead-band { background: var(--sunk, #efe5da); }
.cm-ghead { background-color: var(--card); } .cm-ghead.cm-gc-rose .cm-ghead-band { background: #E8C9C2; } .cm-ghead.cm-gc-burgundy .cm-ghead-band { background: #6B4148; }
.cm-ghead.cm-gc-gold .cm-ghead-band { background: #D9BFA9; } .cm-ghead.cm-gc-clay .cm-ghead-band { background: #C98B7A; } .cm-ghead.cm-gc-sand .cm-ghead-band { background: #E9D9C4; }
.cm-ghead-in { display: flex; align-items: flex-end; gap: var(--s3); padding: 0 var(--s3) var(--s3); margin-top: -32px; flex-wrap: wrap; }
.cm-ghead-in .cm-gtile-lg { border: 3px solid var(--card); }
.cm-ghead-t { flex: 1; min-width: 0; } .cm-ghead-t h1 { margin: 0; font-size: 1.25rem; overflow-wrap: anywhere; } .cm-ghead-t p { margin: 2px 0 0; font-size: var(--fs-xs); color: var(--ink-2); }
.cm-gabout { display: grid; gap: var(--s2); } .cm-gabout h2 { font-size: 1rem; margin: var(--s2) 0 0; }
.cm-gfacts { display: grid; gap: var(--s2); margin: 0; } .cm-gfacts div { display: grid; gap: 2px; } .cm-gfacts dt { font-size: var(--fs-xs); color: var(--ink-2); } .cm-gfacts dd { margin: 0; }
.cm-grules { white-space: pre-line; }
.cm-mrow { display: flex; align-items: center; gap: var(--s2); min-height: 48px; border-bottom: 1px solid var(--line); min-width: 0; }
.cm-mname { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-macts { display: flex; gap: 6px; flex: none; }
.cm-invite { width: 100%; font-size: var(--fs-xs); margin: var(--s2) 0; }
.cm-langpick { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); font-size: var(--fs-sm); margin: var(--s2) 0; }
.cm-langpick select { max-width: 60%; }
/* S43: one column that never grows past the screen — a long tab row scrolls inside itself (Oromo/Somali labels are longer) */
.cm { grid-template-columns: minmax(0, 1fr); }
.cm-tabs { min-width: 0; max-width: 100%; }
/* longer words (Muuxannoo, Waayo-aragnimo): the composer row and its quick buttons stay inside the card */
.cm-composer-card { grid-template-columns: minmax(0, 1fr); min-width: 0; }
.cm-composer-card .cm-composer { min-width: 0; } .cm-composer-in { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-quick a { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: var(--fs-xs); }
/* group header: the symbol overlaps the band; name and facts sit below it at full width; the button goes on its own line when narrow */
.cm-ghead-in { margin-top: 0; align-items: center; }
.cm-ghead-in .cm-gtile-lg { margin-top: -32px; align-self: flex-start; }
.cm-ghead-t { flex: 1 1 calc(100% - 96px); padding-top: var(--s2); }
.cm-ghead-in > .btn, .cm-ghead-in > .cm-gstate { margin-inline-start: auto; }
/* colour choices keep their colour (the generic pick box would paint over it) */
.cm-gcolors .cm-gpick > .cm-gc-rose { background: #E8C9C2; } .cm-gcolors .cm-gpick > .cm-gc-burgundy { background: #6B4148; }
.cm-gcolors .cm-gpick > .cm-gc-gold { background: #D9BFA9; } .cm-gcolors .cm-gpick > .cm-gc-clay { background: #C98B7A; }
.cm-gcolors .cm-gpick > .cm-gc-sand { background: #E9D9C4; } .cm-gcolors .cm-gpick > .cm-gc-ivory { background: #F8F1E8; }

/* ---------- S44: Profile photo and cover, Follow, notifications, people ---------- */
.cm-pfb-cover { position: relative; overflow: hidden; }
.cm-pfb-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cm-pfb-av { position: relative; }
.cm-cam { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; border-radius: 999px; background: var(--surface, #fff); color: var(--primary, #6B4148); font-size: var(--fs-xs); font-weight: 600; box-shadow: 0 1px 4px rgb(0 0 0 / .15); }
.cm-cam:focus-within { outline: 2px solid var(--primary, #6B4148); outline-offset: 2px; }
.cm-cam-cover { position: absolute; inset-inline-end: 8px; bottom: 8px; padding: 6px 10px; }
.cm-cam-av { position: absolute; inset-inline-end: 2px; bottom: 6px; width: 34px; height: 34px; justify-content: center; font-size: 15px; }
.cm-note-pend { margin: 0; font-size: var(--fs-xs); color: var(--ink-2); background: var(--sunk, #f3e9e1); border-radius: var(--r-md, 10px); padding: 4px 10px; max-width: 40ch; }
.cm-pfb-line { margin: 0; font-size: var(--fs-sm); color: var(--ink-2); overflow-wrap: anywhere; }
.cm-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: var(--s1) 0 0; }
.cm-chip { background: var(--rose-soft, #f3e0db); color: var(--primary, #6B4148); border-radius: 999px; padding: 2px 10px; font-size: var(--fs-xs); }
.cm-pfb-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s2); width: 100%; max-width: 360px; margin-top: var(--s2); }
.cm-pfb-stats > * { display: grid; gap: 2px; text-decoration: none; color: var(--ink-2); padding: 4px 0; border-radius: var(--r-md, 10px); min-width: 0; overflow-wrap: anywhere; }
.cm-pfb-stats b { font-size: var(--fs-lg); }
.cm-pfb-stats a:hover { background: var(--sunk, #f3e9e1); }
.cm-findp { font-size: var(--fs-sm); color: var(--primary, #6B4148); margin-top: var(--s1); }
.cm-pmenu { display: flex; gap: var(--s2); flex-wrap: wrap; justify-content: center; }
.cm-pgroups { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; margin: var(--s1) 0 0; font-size: var(--fs-sm); }
.cm-edit h2, .cm-priv h2 { margin: 0; font-size: var(--fs-md); }
.cm-priv h3 { margin: var(--s3) 0 0; font-size: var(--fs-md); }
.cm-prow2 { display: flex; justify-content: space-between; align-items: center; gap: var(--s2); padding: 6px 0; border-bottom: 1px solid var(--line); }
.cm-prow2 span { min-width: 0; overflow-wrap: anywhere; }
.cm-prow2 select { flex: none; max-width: 48%; }
.cm-bell { position: relative; text-decoration: none; }
.cm-bell-n { position: absolute; top: 0; inset-inline-end: -2px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--gold, #B68B70); color: #fff; font-size: 11px; line-height: 18px; font-weight: 700; font-style: normal; }
.cm-h2 { margin: var(--s2) 0; font-size: var(--fs-lg); }
.cm-nhead { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s2); }
.cm-nhead .btn-row { margin: 0; }
.cm-nlist, .cm-plist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); }
.cm-note a, .cm-prow a { display: flex; align-items: flex-start; gap: var(--s2); padding: 10px 6px; color: inherit; text-decoration: none; border-bottom: 1px solid var(--line); min-width: 0; }
.cm-note a > span:not(.cm-av), .cm-prow a > span:not(.cm-av) { display: grid; gap: 2px; min-width: 0; flex: 1; overflow-wrap: anywhere; }
.cm-note.is-new a { background: var(--rose-soft, #fbeee9); }
.cm-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--gold, #B68B70); margin-top: 6px; }
.cm-prow { display: flex; align-items: center; gap: var(--s2); border-bottom: 1px solid var(--line); }
.cm-prow a { flex: 1; border-bottom: 0; align-items: center; }
.cm-who a { color: inherit; text-decoration: none; }
.cm-who a.cm-name:hover { text-decoration: underline; }
.cm-ptabs a { display: grid; place-items: center; min-height: var(--tap); border-bottom: 2px solid transparent; font-size: var(--fs-sm); color: var(--ink-2); text-decoration: none; }
.cm-ptabs a[aria-selected="true"] { color: var(--primary); border-bottom-color: var(--primary); font-weight: 700; }
.cm-ptabs:has(> a) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cm-pfb-btns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; width: 100%; max-width: 400px; gap: var(--s2); }
.cm-pfb-btns:has(> :only-child) { grid-template-columns: minmax(0, 1fr); }
.cm-pfb-btns > * { min-width: 0; padding-inline: 10px; white-space: normal; overflow-wrap: anywhere; justify-content: center; }
.cm-pfb-btns .cm-gear, .cm-pfb-btns [data-pmenu] { width: var(--tap, 44px); padding-inline: 0; }
.cm-dot { display: inline-block; }
.cm-pfb-btns2 { grid-template-columns: minmax(0, 1fr) auto; }
.cm-new-chips.cm-wrapchips { flex-wrap: wrap; overflow: visible; }
.cm-wrapchips .cm-chipopt { flex: 0 1 auto; max-width: 100%; }
.cm-wrapchips .cm-chipopt span { white-space: normal; overflow-wrap: anywhere; }
.cm-ptab { min-width: 0; max-width: 100%; }
.cm-ptab .cm-composer { min-width: 0; }
.cm-composer-in { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-cam-cover { top: 8px; bottom: auto; }
.cm-ptabs button, .cm-ptabs a { white-space: normal; overflow-wrap: anywhere; line-height: 1.25; padding: 6px 4px; min-width: 0; }

/* ---------- S47: Facebook-like icon row (Feed · Reels · Groups · 🔔 · Profile · Menu) and the family Menu ---------- */
.cm-nav { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-bottom: 1px solid var(--line); background: var(--card); }
.cm-nav-i { position: relative; display: grid; place-items: center; min-height: 48px; color: var(--ink-2); border-bottom: 3px solid transparent; text-decoration: none; }
.cm-nav-i .icon { width: 26px; height: 26px; }
.cm-nav-i[aria-current="page"] { color: var(--primary); border-bottom-color: var(--primary); }
.cm-nav-i:hover { background: var(--sunk); }
.cm-nav-i .cm-bell-n { top: 4px; inset-inline-end: calc(50% - 22px); }
.cm-fmenu { display: grid; gap: var(--s3); padding-block: var(--s3); }
.cm-fm-card { display: flex; align-items: center; gap: var(--s3); padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: inherit; text-decoration: none; box-shadow: 0 1px 2px rgb(0 0 0 / .06); }
.cm-fm-card > span:nth-child(2) { display: grid; flex: 1; min-width: 0; overflow-wrap: anywhere; }
.cm-fm-card b { font-size: 1.05rem; }
.cm-fm-h { margin: 0; font-size: 1.05rem; }
.cm-fm-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cm-fm-tile { display: grid; gap: 4px; padding: 12px; min-height: 76px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: inherit; text-decoration: none; box-shadow: 0 1px 2px rgb(0 0 0 / .06); min-width: 0; overflow-wrap: anywhere; }
.cm-fm-tile > span { font-size: 1.4rem; }
.cm-fm-tile:hover, .cm-fm-card:hover { background: var(--sunk); }
.cm-fm-sec { border-top: 1px solid var(--line); padding-top: 4px; }
.cm-fm-sec summary { cursor: pointer; min-height: 48px; display: flex; align-items: center; font-weight: 700; font-size: 1.05rem; }
.cm-fm-sec a { display: flex; align-items: center; gap: 8px; min-height: 44px; padding-inline-start: 8px; color: inherit; text-decoration: none; }
.cm-fm-sec a:hover { background: var(--sunk); }
.cm-fm-out { width: 100%; }

/* ---------- S47: polls, reactions, 🎉 good news, comment tools ---------- */
.cm-poll { display: grid; gap: 6px; margin: 4px 0; }
.cm-popt { position: relative; display: block; width: 100%; min-height: 44px; padding: 8px 12px; border: 1.5px solid var(--line-2); border-radius: 10px; background: var(--card); color: var(--ink); text-align: start; overflow: hidden; cursor: pointer; font: inherit; }
.cm-popt:hover:not(:disabled) { border-color: var(--primary); }
.cm-popt > i { position: absolute; inset-block: 0; inset-inline-start: 0; background: var(--lav); }
.cm-popt.is-mine > i { background: var(--rose); }
.cm-popt > span { position: relative; display: flex; justify-content: space-between; gap: 8px; min-width: 0; }
.cm-popt b { font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.cm-popt.is-mine { border-color: var(--primary); }
.cm-popt:disabled { cursor: default; }
.cm-pollf { display: grid; gap: 8px; }
.cm-pollf input { min-height: 44px; }
.cm-acts { position: relative; }
.cm-rxpick { position: absolute; bottom: calc(100% + 6px); inset-inline-start: 0; z-index: 5; display: flex; gap: 2px; padding: 6px 8px; border-radius: 999px; background: #FFFFFF; box-shadow: 0 6px 20px rgb(0 0 0 / .18), 0 0 0 1px rgb(0 0 0 / .05); }
.cm-rxpick button { width: 42px; height: 42px; border: 0; background: none; font-size: 26px; line-height: 1; border-radius: 50%; cursor: pointer; transition: transform .12s; }
.cm-rxpick button:hover, .cm-rxpick button:focus-visible { transform: scale(1.25) translateY(-3px); outline: none; }
@media (prefers-reduced-motion: reduce) { .cm-rxpick button { transition: none; } }
.cm-rtop { letter-spacing: -2px; }
.cm-celebrate { background: linear-gradient(180deg, #FFF6EC 0, var(--card) 140px); }
.cm-celebrate::after { content: "🎉"; position: absolute; top: 10px; inset-inline-end: 56px; font-size: 1.3rem; }
.cm-c.is-pinned .cm-c-b { background: #FBF3EE; }
.cm-c-pin { display: block; font-size: .78rem; color: var(--ink-2); font-weight: 600; margin-bottom: 2px; }
.cm-c-meta .cm-link.is-on { color: var(--primary); }
.cm-cedit { display: grid; gap: 6px; margin-top: 6px; }
.cm-cedit textarea { min-height: 60px; }

/* ---------- S47: Stories row, story creator / viewer, sheets, Reels ---------- */
html.cm-noscroll, html.cm-noscroll body { overflow: hidden; }
.cm-stories { min-height: 0; }
.cm-st-row { display: flex; gap: 8px; overflow-x: auto; padding: 10px 0; scrollbar-width: none; overscroll-behavior-x: contain; }
.cm-st-row::-webkit-scrollbar { display: none; }
.cm-st-card { position: relative; flex: 0 0 104px; height: 176px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--sunk); color: #fff; padding: 0; cursor: pointer; display: grid; place-items: center; font: inherit; }
.cm-st-card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cm-st-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(0 0 0 / .15), transparent 35%, transparent 60%, rgb(0 0 0 / .55)); pointer-events: none; }
.cm-st-card > b { position: absolute; z-index: 1; inset-inline: 8px; bottom: 8px; font-size: .8rem; text-align: start; line-height: 1.2; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cm-st-ring { position: absolute; z-index: 1; top: 8px; inset-inline-start: 8px; border-radius: 50%; padding: 2px; background: var(--primary); }
.cm-st-ring.is-seen { background: #BFC3C9; }
.cm-st-ring .cm-av { border: 2px solid #fff; }
.cm-st-play { font-size: 1.8rem; z-index: 1; }
.cm-st-txt { padding: 10px; font-weight: 700; font-size: .85rem; line-height: 1.3; z-index: 1; overflow-wrap: anywhere; }
.cm-st-new { background: #fff; color: var(--ink); align-content: start; }
.cm-st-new::after { display: none; }
.cm-st-me { width: 100%; height: 112px; overflow: hidden; display: grid; place-items: center; background: var(--rose); }
.cm-st-me .cm-av { width: 100%; height: 100%; border-radius: 0; font-size: 2.6rem; }
.cm-st-plus { position: absolute; top: 96px; left: 50%; transform: translateX(-50%); width: 34px; height: 34px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-size: 1.3rem; border: 3px solid #fff; }
.cm-st-new > b { color: var(--ink); text-align: center; }
/* layers of our own */
.cm-ov { position: fixed; inset: 0; z-index: 900; }
.cm-sv, .cm-stc { background: #000; color: #fff; display: grid; place-items: center; padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px); }
.cm-ov-x { min-width: 44px; min-height: 44px; border: 0; background: rgb(255 255 255 / .12); color: inherit; border-radius: 50%; font-size: 1.1rem; cursor: pointer; }
.cm-sv-in { position: relative; width: min(100%, 460px); height: 100%; max-height: 100dvh; display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; }
.cm-sv-bars { display: flex; gap: 3px; padding: 8px 8px 0; }
.cm-sv-bars i { flex: 1; height: 3px; background: rgb(255 255 255 / .35); border-radius: 3px; overflow: hidden; }
.cm-sv-bars i b { display: block; height: 100%; width: 0; background: #fff; }
.cm-sv-bars i.done b { width: 100%; }
.cm-sv-h { display: flex; align-items: center; gap: 8px; padding: 8px; }
.cm-sv-h > span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.cm-sv-h small { opacity: .75; }
.cm-sv-stage { position: relative; overflow: hidden; display: grid; place-items: center; border-radius: 10px; margin: 0 6px; background: #111; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.cm-sv-stage img, .cm-sv-stage video { width: 100%; height: 100%; object-fit: contain; }
.cm-sv-text { margin: 0; padding: 24px; font-size: clamp(1.3rem, 6vw, 1.9rem); font-weight: 700; text-align: center; line-height: 1.35; overflow-wrap: anywhere; }
.cm-sv-sticker { position: absolute; top: 14%; inset-inline-end: 10%; font-size: 3rem; transform: rotate(-8deg); pointer-events: none; }
.cm-sv-cap { position: absolute; bottom: 14px; inset-inline: 12px; margin: 0; padding: 8px 12px; border-radius: 10px; background: rgb(0 0 0 / .5); text-align: center; overflow-wrap: anywhere; }
.cm-sv-prev, .cm-sv-next { position: absolute; top: 0; bottom: 0; width: 34%; border: 0; background: transparent; cursor: pointer; }
.cm-sv-prev { inset-inline-start: 0; } .cm-sv-next { inset-inline-end: 0; width: 66%; }
.cm-sv-f { padding: 8px; display: grid; gap: 8px; }
.cm-sv-rx { display: flex; justify-content: space-around; }
.cm-sv-rx button { width: 44px; height: 44px; border: 0; background: none; font-size: 1.7rem; border-radius: 50%; cursor: pointer; }
.cm-sv-rx button[aria-pressed="true"] { background: rgb(255 255 255 / .2); }
.cm-sv-rx button.pop { animation: cm-pop .4s ease; }
@keyframes cm-pop { 50% { transform: scale(1.5) translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .cm-sv-rx button.pop { animation: none; } .cm-sv-bars i b { transition: none !important; } }
.cm-sv-reply { display: flex; gap: 8px; }
.cm-sv-reply input { flex: 1; min-width: 0; min-height: 44px; border-radius: 22px; border: 1px solid rgb(255 255 255 / .6); background: transparent; color: #fff; padding: 0 16px; }
.cm-sv-reply input::placeholder { color: rgb(255 255 255 / .75); }
.cm-sv-reply button { min-width: 44px; border: 0; background: none; color: #fff; font-size: 1.3rem; cursor: pointer; }
.cm-sv-eye { min-height: 44px; border: 0; border-radius: 22px; background: rgb(255 255 255 / .15); color: #fff; font: inherit; font-weight: 700; cursor: pointer; justify-self: start; padding: 0 16px; }
.cm-sv-vrx { font-size: 1.3rem; }
/* story creator */
.cm-stc { place-items: stretch; overflow-y: auto; }
.cm-stc-in { width: min(100%, 460px); margin: 0 auto; display: grid; gap: 10px; padding: 8px 12px 20px; align-content: start; }
.cm-stc-h { display: flex; align-items: center; justify-content: space-between; }
.cm-stc-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.cm-stc-tabs button { min-height: 40px; border-radius: 20px; border: 1px solid rgb(255 255 255 / .3); background: none; color: #fff; font: inherit; cursor: pointer; }
.cm-stc-tabs [aria-selected="true"] { background: #fff; color: #1c1e21; font-weight: 700; }
.cm-stc-stage { aspect-ratio: 9 / 13; max-height: 52vh; width: 100%; justify-self: center; border-radius: 12px; overflow: hidden; background: #1a1a1a; display: grid; }
.cm-stc-text, .cm-stc-media { position: relative; display: grid; place-items: center; padding: 18px; font-size: 1.4rem; font-weight: 700; text-align: center; overflow-wrap: anywhere; }
.cm-stc-media { padding: 0; }
.cm-stc-media img, .cm-stc-media video { width: 100%; height: 100%; object-fit: cover; }
.cm-stc-ph { opacity: .7; }
.cm-stc-sticker { position: absolute; top: 12%; inset-inline-end: 10%; font-size: 2.6rem; transform: rotate(-8deg); }
.cm-stc-capshow { position: absolute; bottom: 12px; inset-inline: 12px; background: rgb(0 0 0 / .5); border-radius: 10px; padding: 6px 10px; font-size: 1rem; font-weight: 400; }
.cm-stc-pick { border: 2px dashed rgb(255 255 255 / .35); border-radius: 12px; background: none; color: #fff; display: grid; place-content: center; gap: 6px; font: inherit; font-size: 2.4rem; cursor: pointer; margin: 10px; }
.cm-stc-pick b { font-size: 1rem; } .cm-stc-pick small { font-size: .8rem; color: rgb(255 255 255 / .7); padding: 0 12px; }
.cm-stc-cap input { width: 100%; min-height: 44px; border-radius: 22px; border: 1px solid rgb(255 255 255 / .4); background: rgb(255 255 255 / .08); color: #fff; padding: 0 16px; }
.cm-stc-bgs, .cm-stc-stk { display: flex; gap: 8px; flex-wrap: wrap; }
.cm-stc-bgs button { width: 34px; height: 34px; border-radius: 50%; border: 2px solid rgb(255 255 255 / .5); cursor: pointer; }
.cm-stc-bgs [aria-pressed="true"] { outline: 3px solid #fff; outline-offset: 2px; }
.cm-stc-stk button { width: 40px; height: 40px; border-radius: 10px; border: 0; background: rgb(255 255 255 / .1); font-size: 1.4rem; cursor: pointer; }
.cm-stc-stk [aria-pressed="true"] { background: rgb(255 255 255 / .35); }
.cm-stc-aud { border: 0; padding: 0; margin: 0; display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.cm-stc-aud legend { float: left; margin-inline-end: 8px; }
.cm-stc .muted { color: rgb(255 255 255 / .7); }
.cm-stc .cm-msg { color: #FFB4B4; }
/* bottom sheets */
.cm-sheet-ov { background: rgb(0 0 0 / .45); display: flex; align-items: flex-end; justify-content: center; }
.cm-sheet2 { width: min(100%, 520px); max-height: 86dvh; overflow-y: auto; background: #F0F2F5; color: #1c1e21; border-radius: 16px 16px 0 0; padding: 8px 12px calc(16px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 8px; }
.cm-sheet2 > header { display: flex; align-items: center; justify-content: space-between; position: sticky; top: -8px; background: #F0F2F5; padding: 4px 0; z-index: 1; }
.cm-sheet2 .cm-ov-x { background: #E4E6EB; }
.cm-sheet2-b { display: grid; gap: 8px; background: #fff; border-radius: 12px; padding: 10px; }
.cm-sheet2-b h3 { margin: 4px 0 0; font-size: 1rem; }
.cm-sheet2-list .cm-sheet-row { display: flex; width: 100%; min-height: 48px; align-items: center; border: 0; background: none; font: inherit; cursor: pointer; text-align: start; padding: 0 8px; border-radius: 8px; }
.cm-sheet2-list .cm-sheet-row:hover { background: #F0F2F5; }
.cm-grab { width: 40px; height: 4px; border-radius: 4px; background: #BCC0C4; justify-self: center; margin: 2px 0 4px; }
.cm-fbbox { background: #fff; border-radius: 12px; padding: 4px; display: grid; }
.cm-fbbox > button, .cm-fbspeed { display: flex; gap: 12px; align-items: flex-start; width: 100%; min-height: 52px; padding: 8px; border: 0; background: none; font: inherit; color: inherit; text-align: start; border-radius: 8px; cursor: pointer; }
.cm-fbbox > button:hover { background: #F0F2F5; }
.cm-fbbox i { font-style: normal; width: 28px; flex: none; text-align: center; font-size: 1.2rem; }
.cm-fbbox span { display: grid; gap: 2px; min-width: 0; }
.cm-fbbox small { color: #65676B; }
.cm-speeds { display: flex !important; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.cm-speeds button { min-width: 48px; min-height: 36px; border-radius: 18px; border: 1px solid #CED0D4; background: #fff; font: inherit; cursor: pointer; }
.cm-speeds [aria-pressed="true"] { background: var(--primary); color: #fff; border-color: var(--primary); }
.cm-hl-form { display: grid; gap: 8px; }
/* Highlights on a Profile */
.cm-hls:empty { display: none; }
.cm-hl-row { display: flex; gap: 14px; overflow-x: auto; padding: 10px 0; scrollbar-width: none; }
.cm-hl { display: grid; justify-items: center; gap: 4px; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; flex: 0 0 auto; max-width: 76px; }
.cm-hl-c { width: 64px; height: 64px; border-radius: 50%; border: 2px solid var(--line-2); overflow: hidden; display: grid; place-items: center; background: var(--sunk); color: #fff; font-size: 1.4rem; padding: 2px; }
.cm-hl-c img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.cm-hl b { font-size: .78rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 76px; }
/* Reels */
.cm-reels { position: relative; background: #000; color: #fff; display: grid; grid-template-rows: auto minmax(0, 1fr); min-height: 420px; }
.cm-rl-h { position: absolute; z-index: 3; top: 0; inset-inline: 0; display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; background: linear-gradient(rgb(0 0 0 / .55), transparent); pointer-events: none; }
.cm-rl-h > * { pointer-events: auto; }
.cm-rl-h b { font-size: 1.5rem; }
.cm-rl-ic { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; border: 0; background: none; color: #fff; font-size: 1.3rem; text-decoration: none; cursor: pointer; }
.cm-rl-list { grid-row: 1 / -1; overflow-y: auto; scroll-snap-type: y mandatory; overscroll-behavior: contain; scrollbar-width: none; }
.cm-rl-list::-webkit-scrollbar { display: none; }
.cm-rl { position: relative; height: 100%; min-height: 100%; scroll-snap-align: start; scroll-snap-stop: always; display: grid; place-items: center; background: #000; overflow: hidden; }
.cm-rl video { width: 100%; height: 100%; object-fit: contain; }
.cm-rl-sound { position: absolute; top: 60px; inset-inline-end: 12px; min-width: 44px; min-height: 44px; border: 0; border-radius: 50%; background: rgb(0 0 0 / .45); color: #fff; font-size: 1.1rem; cursor: pointer; }
.cm-rl-side { position: absolute; inset-inline-end: 6px; bottom: 90px; display: grid; gap: 14px; justify-items: center; }
.cm-rl-side > button { display: grid; justify-items: center; gap: 2px; min-width: 48px; border: 0; background: none; color: #fff; font: inherit; cursor: pointer; text-shadow: 0 1px 3px rgb(0 0 0 / .6); position: relative; }
.cm-rl-side > button span { font-size: 1.7rem; line-height: 1; }
.cm-rl-side > button b { font-size: .8rem; font-weight: 700; }
.cm-rxpick-v { flex-direction: column; bottom: auto; top: -8px; inset-inline-start: auto; inset-inline-end: calc(100% + 6px); border-radius: 26px; }
.cm-rl-b { position: absolute; inset-inline: 12px 70px; bottom: 16px; display: grid; gap: 6px; text-shadow: 0 1px 3px rgb(0 0 0 / .6); }
.cm-rl-who { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cm-rl-who a { display: flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; min-width: 0; }
.cm-rl-who b { overflow-wrap: anywhere; }
.cm-rl-follow { min-height: 32px; padding: 0 12px; border: 1px solid #fff; border-radius: 8px; background: transparent; color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.cm-rl-b p { margin: 0; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cm-rl-empty { margin: auto; padding: 80px 24px; text-align: center; color: rgb(255 255 255 / .85); }
.cm-reels.is-clear .cm-rl-side, .cm-reels.is-clear .cm-rl-b, .cm-reels.is-clear .cm-rl-h, .cm-reels.is-clear .cm-rl-sound { display: none; }
.cm-reels.is-clear .cm-rl-h { display: flex; } .cm-reels.is-clear .cm-rl-h > b { visibility: hidden; }
.cm-rl-prev { width: 100%; max-height: 40vh; border-radius: 10px; background: #000; }
.cm-types { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cm-type, .cm-type > span { min-width: 0; }
.cm-type b, .cm-type small { overflow-wrap: anywhere; min-width: 0; }

/* ===== S49: 🔍 / 💬 beside the title, Messages, Search, Knowledge Center, appeals ===== */
.cm-tools { display: flex; gap: 6px; flex: none; margin-inline-start: auto; }
.cm-tool { position: relative; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--sunk); color: var(--ink); text-decoration: none; }
.cm-tool .icon { width: 22px; height: 22px; }
.cm-tool:hover { background: var(--line); }
.cm-msg-n { position: absolute; top: -2px; inset-inline-end: -4px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: #E0245E; color: #fff; font-size: 11px; line-height: 18px; font-weight: 700; text-align: center; }
.cm-msg-n[hidden] { display: none; }
.cm-tab-n { display: inline-block; min-width: 18px; margin-inline-start: 6px; padding: 0 5px; border-radius: 9px; background: #E0245E; color: #fff; font-size: 11px; line-height: 18px; }
.cm-tab-n[hidden] { display: none; }
.cm-ptabs a:has(.cm-tab-n) { display: flex; justify-content: center; align-items: center; }

/* the inbox */
.cm-ms-note { margin: var(--s2) 0; padding: 10px 12px; border-radius: 12px; background: var(--sunk); color: var(--ink-2); font-size: var(--fs-sm); line-height: 1.5; }
.cm-ms-list, .cm-ap-list { list-style: none; margin: 0; padding: 0; display: grid; }
.cm-ms-row a { display: flex; align-items: center; gap: 12px; padding: 10px 4px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; min-width: 0; }
.cm-ms-row a:hover { background: var(--sunk); }
.cm-ms-t { flex: 1; min-width: 0; display: grid; gap: 2px; }
.cm-ms-t small { color: var(--ink-2); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.cm-ms-row.is-new .cm-ms-t b, .cm-ms-row.is-new .cm-ms-t small:first-of-type { color: var(--ink); font-weight: 800; }
.cm-ms-wait { color: var(--gold-ink, #8a6448) !important; }
.cm-ms-side { display: grid; justify-items: end; gap: 4px; flex: none; }
.cm-ms-n { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--primary); color: var(--on-primary, #fff); font-size: 12px; line-height: 20px; text-align: center; }

/* one conversation: full height, newest at the bottom, the box to write stays at the bottom */
.cm-chat { display: grid; grid-template-rows: auto auto 1fr auto auto; height: calc(100dvh - 140px); min-height: 380px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--card); }
.cm-chat-h { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-bottom: 1px solid var(--line); min-width: 0; }
.cm-chat-back { display: grid; place-items: center; width: 40px; height: 40px; font-size: 1.8rem; line-height: 1; color: var(--primary); text-decoration: none; flex: none; }
.cm-chat-who { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; color: var(--ink); text-decoration: none; }
.cm-chat-who b { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.cm-chat-list { list-style: none; margin: 0; padding: 12px 10px; display: flex; flex-direction: column; gap: 4px; overflow-y: auto; overscroll-behavior: contain; min-height: 0; }
.cm-chat-day { align-self: center; margin: 8px 0 2px; color: var(--ink-2); }
.cm-bub { position: relative; align-self: flex-start; max-width: 78%; display: grid; gap: 6px; padding: 8px 12px; padding-inline-end: 30px; border-radius: 18px 18px 18px 6px; background: var(--sunk); color: var(--ink); overflow-wrap: anywhere; white-space: pre-wrap; line-height: 1.45; }
.cm-bub.mine { align-self: flex-end; border-radius: 18px 18px 6px 18px; background: var(--primary); color: var(--on-primary, #fff); }
.cm-bub img { display: block; max-width: 100%; max-height: 320px; border-radius: 12px; object-fit: cover; }
.cm-bub.gone { background: none; border: 1px dashed var(--line-2); color: var(--ink-2); padding-inline-end: 12px; }
.cm-bub-x { position: absolute; top: 2px; inset-inline-end: 2px; width: 26px; height: 26px; border: 0; border-radius: 50%; background: none; color: inherit; opacity: .55; cursor: pointer; font-size: 14px; }
.cm-bub-x:hover, .cm-bub-x:focus-visible { opacity: 1; }
.cm-seen { align-self: flex-end; color: var(--ink-2); padding-inline-end: 4px; }
.cm-empty:is(li) { list-style: none; }
.cm-chat-list .cm-empty { margin: auto 0; border: 0; background: none; }
.cm-req { margin: 10px; padding: 12px; border-radius: 14px; background: var(--sunk); display: grid; gap: 8px; }
.cm-req p { margin: 0; line-height: 1.5; }
.cm-chat-top .cm-ms-note { margin: 10px; }
.cm-chat-why { margin: 0; padding: 12px; border-top: 1px solid var(--line); text-align: center; color: var(--ink-2); font-size: var(--fs-sm); }
.cm-chat-bar:empty { display: none; }
.cm-chat-in { display: flex; align-items: flex-end; gap: 8px; padding: 8px; padding-bottom: max(8px, env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); background: var(--card); }
.cm-chat-in[hidden] { display: none; }
.cm-chat-in textarea { flex: 1; min-width: 0; min-height: 42px; max-height: 140px; resize: none; padding: 10px 14px; border: 1px solid var(--line); border-radius: 21px; background: var(--sunk); color: var(--ink); font: inherit; line-height: 1.35; }
.cm-chat-ph { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; font-size: 1.25rem; cursor: pointer; flex: none; }
.cm-chat-ph:hover { background: var(--sunk); }
.cm-chat-send { width: 42px; min-width: 42px; height: 42px; min-height: 42px; padding: 0; border-radius: 50%; flex: none; }
.cm-menu-list > * { display: flex; align-items: center; gap: var(--s2); min-height: 48px; border: 0; border-bottom: 1px solid var(--line); background: none; font: inherit; font-size: var(--fs-sm); color: var(--ink); text-decoration: none; text-align: start; cursor: pointer; padding: 0 var(--s1); }
.cm-sheet-t { margin-inline-end: 44px !important; }

/* search */
.cm-sr-chips { justify-content: flex-start; margin: 10px 0; }
.cm-sr-chips .cm-chip, .cm-kn-chips .cm-chip, .cm-chips button.cm-chip { min-height: 38px; padding: 6px 14px; border: 1px solid var(--line-2); background: var(--card); color: var(--ink); font: inherit; font-size: var(--fs-sm); cursor: pointer; }
.cm-chips button.cm-chip[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: var(--on-primary, #fff); }
.cm-sr-sec { display: grid; gap: 8px; margin: 14px 0; }
.cm-sr-sec h3 { margin: 0; font-size: var(--fs-md); }
.cm-sr-sec > .btn { justify-self: start; }
.cm-tagchip { display: inline-flex; gap: 4px; align-items: baseline; padding: 6px 12px; font-size: var(--fs-sm); text-decoration: none; }
.cm-tag { color: var(--primary); font-weight: 700; text-decoration: none; }
.cm-tag:hover { text-decoration: underline; }

/* Knowledge Center */
.cm-kn-note { margin: 8px 0; }
.cm-kn-alllang { display: flex; gap: 8px; align-items: center; margin: 8px 0; font-size: var(--fs-sm); color: var(--ink-2); }
.cm-kn-list { display: grid; gap: 10px; }
.cm-kn-row { display: grid; gap: 4px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); color: var(--ink); text-decoration: none; min-width: 0; overflow-wrap: anywhere; }
.cm-kn-row:hover { border-color: var(--primary); }
.cm-kn-row small { color: var(--ink-2); line-height: 1.45; }
.cm-kn-cat { font-size: var(--fs-xs); color: var(--ink-2); font-weight: 700; }
.cm-kn-lab { justify-self: start; padding: 2px 10px; border-radius: 999px; background: var(--warn-bg); color: var(--ink); font-size: var(--fs-xs); font-weight: 700; }
.cm-kn-lab.ok { background: var(--ok-bg); }
.cm-kn-art { display: grid; gap: 10px; max-width: 70ch; overflow-wrap: anywhere; }
.cm-kn-art h2 { margin: 0; font-size: var(--fs-xl); text-wrap: balance; }
.cm-kn-art p { margin: 0; }
.cm-kn-sum { font-size: var(--fs-md); color: var(--ink-2); }
.cm-kn-body { display: grid; gap: 12px; line-height: 1.75; }
.cm-back-link { color: var(--primary); text-decoration: none; font-weight: 700; }

/* appeals */
.cm-ap-btn { margin: 0 0 8px; margin-inline-start: 56px; }
.cm-ap-done { margin: 0 0 8px; margin-inline-start: 56px; color: var(--ink-2); font-size: var(--fs-xs); }
.cm-ap-f { display: grid; gap: 10px; }
.cm-ap-f textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); font: inherit; }
.cm-ap-row { display: grid; gap: 4px; padding: 12px 4px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.cm-ap-row p { margin: 0; }
.cm-ap-ans { padding: 8px 10px; border-radius: 10px; background: var(--sunk); }
.cm-feat { display: inline-block; padding: 0 8px; border-radius: 999px; background: var(--gold, #B68B70); color: #fff; font-size: var(--fs-xs); font-weight: 700; }
.cm-ban .btn { margin-top: 6px; }
.cm-pfb-btns2:has(a[href^="#community-mto-"]) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; }
.cm-pfb-btns2 > * { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cm-chat { grid-template-columns: minmax(0, 1fr); min-width: 0; max-width: 100%; }
.cm-chat > * { min-width: 0; }
.cm-chat-list > li { min-width: 0; }
.cm-bub > span { min-width: 0; overflow-wrap: anywhere; word-break: break-word; }
.cm-chips[role="group"], .cm-sr-sec .cm-chips { justify-content: flex-start; }
.cm-ap-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cm-ap-st { padding: 1px 10px; border-radius: 999px; background: var(--sunk); font-size: var(--fs-xs); font-weight: 700; }
.cm-ap-accepted .cm-ap-st { background: var(--ok-bg); }
.cm-ap-rejected .cm-ap-st { background: var(--danger-bg); }
.cm-ap-top small { margin-inline-start: auto; }
