/* The owner's marks of 2026-11-30 on Home and Events (company/workflow/tasks/owner-marks-1130/plan-a.md): one React
   button and its row of emoji, a post's "More" menu at its top right, regular gatherings, the search box and its
   answer, and what is new. Colors are the community's own (community-theme.js sets every --cm- value, light or dark).
   Everything pressed is at least 44 px tall; nothing scrolls sideways at 360 px. */

/* ---- a post's heading: who and when on the left, "More" at the top right */
.cm-post-head { position: relative; }
.cm-post-head > .cm-post-who { flex: 1 1 auto; min-width: 0; }
.cm-post-head > .cm-more { flex: none; align-self: flex-start; margin-left: auto; }
.cm-post-confirm:empty { display: none; }
.cm-post-confirm { padding: 4px 0; }

/* ---- the "More" menu */
.cm-more { position: relative; }
.cm-more-button { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 22px; background: none; color: var(--cm-soft); cursor: pointer; }
.cm-more-button:hover, .cm-more.open .cm-more-button { background: var(--cm-accent-soft); color: var(--cm-accent); }
.cm-more-menu { position: absolute; right: 0; top: calc(100% + 4px); z-index: 25; min-width: 200px; max-width: min(280px, calc(100vw - 32px)); display: grid; padding: 6px;
  background: var(--cm-card); color: var(--cm-ink); border: 1px solid var(--cm-line); border-radius: 12px; box-shadow: 0 10px 28px var(--cm-shadow-strong), 0 2px 6px var(--cm-shadow); }
.cm-more-menu[hidden] { display: none; }
.cm-more-item { display: flex; align-items: center; min-height: 44px; padding: 8px 12px; border: 0; border-radius: 8px; background: none; color: var(--cm-ink); font: inherit; font-weight: 600;
  text-align: left; text-decoration: none; cursor: pointer; }
.cm-more-item:hover, .cm-more-item:focus-visible { background: var(--cm-accent-soft); color: var(--cm-accent); }
.cm-more-item.cm-danger-text { color: var(--cm-danger); }
.cm-reply-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.cm-reply-head > .cm-avatar { width: 28px; height: 28px; flex: 0 0 28px; margin-top: 5px; font-size: .8rem; }
.cm-reply-head > p { flex: 1; min-width: 0; padding-top: 7px; }
.cm-app .cm-reply-tools { margin: 0; flex: none; }

/* ---- reactions: one React button, its row of emoji, and the small counts */
.cm-app .cm-reactions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
/* The emoji open in the React button's own row, beside it, never over the post's words (live check, 2026-11-30). */
.cm-react-box { position: relative; display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; max-width: 100%; }
.cm-react-open { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 6px 12px; border: 1.5px solid var(--cm-line); border-radius: 22px; background: var(--cm-button);
  color: var(--cm-soft); font: inherit; font-weight: 600; font-size: .9rem; cursor: pointer; }
.cm-react-open:hover, .cm-react-box.open .cm-react-open { border-color: var(--cm-accent-line-strong, var(--cm-accent)); color: var(--cm-accent); }
.cm-react-pick { position: static; display: flex; gap: 2px; padding: 2px; background: var(--cm-card); border: 1px solid var(--cm-line); border-radius: 28px; }
.cm-react-pick[hidden] { display: none; }
.cm-app .cm-react-pick .cm-react { width: 48px; height: 48px; min-height: 48px; padding: 0; justify-content: center; border-radius: 24px; border: 1.5px solid transparent; background: none; font-size: 1.55rem; }
.cm-app .cm-react-pick .cm-react:hover, .cm-app .cm-react-pick .cm-react:focus-visible { background: var(--cm-accent-soft); transform: scale(1.12); }
.cm-app .cm-react-pick .cm-react[aria-pressed="true"] { border-color: var(--cm-accent); background: var(--cm-accent-soft); }
.cm-react-count { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; min-width: 44px; padding: 4px 10px; border: 1.5px solid var(--cm-line); border-radius: 22px;
  background: var(--cm-button); color: var(--cm-ink); font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; }
.cm-react-count.mine { border-color: var(--cm-accent); background: var(--cm-accent-soft); color: var(--cm-accent); }
.cm-emoji { font-size: 1.1rem; line-height: 1; }
@media (prefers-reduced-motion: reduce) { .cm-app .cm-react-pick .cm-react:hover, .cm-app .cm-react-pick .cm-react:focus-visible { transform: none; } }

/* ---- what is new: quiet counts, the line, the tag */
.cm-count.cm-count-new { background: var(--cm-accent-soft); color: var(--cm-accent); box-shadow: inset 0 0 0 1px var(--cm-accent-line); }
.cm-chip .cm-count-new { margin-left: 8px; }
.cm-new-line { display: flex; align-items: center; gap: 10px; margin: 4px 0; color: var(--cm-accent); font-size: .86rem; font-weight: 700; }
.cm-new-line::before, .cm-new-line::after { content: ""; flex: 1 1 auto; height: 1px; background: var(--cm-accent-line); }
.cm-new-tag { background: var(--cm-accent-soft); color: var(--cm-accent); }

/* ---- search, at the top of the app */
.cm-app .cm-main > .cm-search { display: flex; align-items: center; gap: 8px; padding: 4px 4px 4px 12px; background: var(--cm-field); border: 1.5px solid var(--cm-control); border-radius: 26px; }
.cm-app .cm-main > .cm-search[hidden] { display: none; }
.cm-search:focus-within { border-color: var(--cm-accent); box-shadow: 0 0 0 3px var(--cm-accent-soft); }
.cm-search-icon { display: inline-grid; place-items: center; color: var(--cm-soft); flex: none; }
.cm-search input[type="search"] { flex: 1 1 auto; min-width: 0; min-height: 44px; border: 0; background: none; color: var(--cm-ink); font: inherit; outline: none; padding: 0; }
.cm-search input[type="search"]::placeholder { color: var(--cm-soft); }
.cm-search > .cm-button { flex: none; border-radius: 22px; }
.cm-search-results { display: grid; gap: 12px; }
.cm-search-results[hidden] { display: none; }
.cm-search-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.cm-search-head h2 { margin: 0; font-size: 1.1rem; }
.cm-search-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cm-search-kind h3 { font-size: .95rem; color: var(--cm-soft); text-transform: none; }
.cm-hits { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.cm-hit { display: grid; gap: 2px; width: 100%; min-height: 44px; padding: 8px 12px; border: 1px solid var(--cm-line); border-radius: 10px; background: var(--cm-card); color: var(--cm-ink);
  font: inherit; text-align: left; text-decoration: none; cursor: pointer; }
.cm-hit:hover, .cm-hit:focus-visible { border-color: var(--cm-accent); background: var(--cm-accent-soft); }
.cm-hit-title { font-weight: 700; }
.cm-hit-words { color: var(--cm-soft); font-size: .92rem; overflow-wrap: anywhere; }
.cm-search-more { justify-self: start; margin-top: 4px; }
.cm-found-note { margin-bottom: -6px; }

/* ---- regular gatherings */
/* One box, not a box in a box: the card is the box, as an event's own block is on a post. */
.cm-app .cm-gathering .cm-event { background: none; padding: 0; border: 0; }
.cm-gathering-repeat { display: flex; align-items: center; gap: 6px; font-weight: 700; color: var(--cm-accent); }
.cm-gathering-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.cm-gathering-row-item { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 10px 0; border-top: 1px solid var(--cm-line); }
.cm-gathering-row-item > div:first-child { min-width: 0; flex: 1 1 240px; }
.cm-gathering-actions { margin: 0; }
.cm-gathering-form { display: grid; gap: 10px; padding-top: 8px; border-top: 1px solid var(--cm-line); }
.cm-gathering-form h4 { margin: 0; font-size: 1rem; }
.cm-gathering-field { display: grid; gap: 4px; font-weight: 600; min-width: 0; }
.cm-gathering-field :is(input, select) { min-height: 44px; width: 100%; }
.cm-gathering-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 420px) { .cm-gathering-row { grid-template-columns: minmax(0, 1fr); } }
