


.cm { --card: var(--raised); --accent: var(--brand); --accent-soft: var(--tint); --chip: var(--surface-2); --amber-fg: var(--amber); }
.cm { max-width: 980px; margin: 0 auto; padding: 0 16px 32px; box-sizing: border-box; overflow-x: hidden; }
.cm *, .cm *::before, .cm *::after { box-sizing: border-box; }
.cm-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; margin: 12px 0; }
.cm-head h1 { margin: 0; font-size: 1.375rem; }
.cm-mode { font-size: .8125rem; padding: 4px 10px; border-radius: 999px; background: var(--amber-bg); color: var(--amber); }
.cm-muted { color: var(--muted, #667085); font-size: .875rem; }
.cm-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0 0 12px; }
.cm-stat { border: 1px solid var(--line, #e4e7ec); border-radius: 12px; padding: 10px; background: var(--surface, #fbfaf7); min-height: 44px; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.cm-stat b { display: block; font-size: 1.25rem; }
.cm-stat[aria-pressed="true"] { border-color: var(--brand, #276f2a); box-shadow: inset 0 0 0 1px var(--brand, #276f2a); }
.cm-bar { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.cm-bar input, .cm-bar select, .cm-reply textarea { font-size: 16px; min-height: 44px; width: 100%; border: 1px solid var(--line, #d0d5dd); border-radius: 10px; padding: 8px 12px; background: var(--surface, #fbfaf7); color: inherit; }
.cm-chips { display: flex; gap: 6px; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 2px; }
.cm-chip { flex: 0 0 auto; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line, #d0d5dd); background: var(--surface, #fbfaf7); color: inherit; font: inherit; font-size: .875rem; cursor: pointer; }
.cm-chip[aria-pressed="true"] { background: var(--brand, #276f2a); border-color: var(--brand, #276f2a); color: var(--brand-ink, #fff); }
.cm-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.cm-row { display: block; width: 100%; text-align: left; border: 1px solid var(--line, #e4e7ec); border-radius: 12px; background: var(--surface, #fbfaf7); padding: 12px; min-height: 44px; color: inherit; font: inherit; cursor: pointer; }
.cm-row:focus-visible, .cm-chip:focus-visible, .cm-btn:focus-visible { outline: 2px solid var(--brand, #276f2a); outline-offset: 2px; }
.cm-row-top { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.cm-row-top strong { overflow-wrap: anywhere; }
.cm-when { flex: 0 0 auto; font-size: .75rem; color: var(--muted, #667085); }
.cm-prev { margin: 4px 0 6px; font-size: .875rem; color: var(--muted, #475467); overflow-wrap: anywhere; }
.cm-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.cm-tag { font-size: .75rem; padding: 2px 8px; border-radius: 999px; background: var(--surface-2, #f2efe7); }
a.cm-tag { min-height: 44px; display: inline-flex; align-items: center; padding: 0 12px; color: inherit; text-decoration: underline; }
.cm-tag.wait { background: var(--red-bg); color: var(--red); }
.cm-tag.ro { background: var(--blue-bg); color: var(--blue); }
.cm-tag.old { background: var(--amber-bg); color: var(--amber); }
.cm-back { min-height: 44px; display: inline-flex; align-items: center; color: inherit; }
.cm-msgs { list-style: none; padding: 0; margin: 12px 0; display: flex; flex-direction: column; gap: 8px; }
.cm-msg { max-width: 92%; padding: 10px 12px; border-radius: 12px; background: var(--surface-2, #f2efe7); white-space: pre-wrap; overflow-wrap: anywhere; font-size: .9375rem; }
.cm-msg.us { align-self: flex-end; background: var(--tint); }
.cm-msg.draft { align-self: flex-end; background: var(--amber-bg); border: 1px dashed var(--amber); }
.cm-msg small { display: block; margin-top: 4px; color: var(--muted, #667085); font-size: .75rem; }
.cm-reply { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.cm-reply textarea { min-height: 96px; resize: vertical; }
.cm-btn { min-height: 44px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--brand, #276f2a); background: var(--brand, #276f2a); color: var(--brand-ink, #fff); font: inherit; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.cm-btn.ghost { background: transparent; color: var(--brand, #276f2a); }
.cm-note { font-size: .8125rem; color: var(--muted, #667085); }
.cm-src { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 6px; }
.cm-src li { display: flex; justify-content: space-between; gap: 8px; padding: 10px 12px; border: 1px solid var(--line, #e4e7ec); border-radius: 10px; font-size: .875rem; }
.cm-err { padding: 10px 12px; border-radius: 10px; background: var(--amber-bg); color: var(--amber); font-size: .875rem; margin-bottom: 8px; }
@media (min-width: 720px) {
  .cm-bar { flex-direction: row; flex-wrap: wrap; }
  .cm-bar input { flex: 1 1 260px; width: auto; }
  .cm-src { grid-template-columns: 1fr 1fr; }
}

 
