/* Communications: inbox, composer, sequences, templates. Every class is prefixed cm-. */
.cm-page { gap: 14px; }
.cm-subbar { display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.cm-tabs { border-bottom: 0; }
.cm-tabs a[aria-current="page"] { color: var(--brand); border-bottom-color: var(--brand); }
.cm-tabs a:hover { color: var(--ink); text-decoration: none; }
.cm-intg { display: flex; gap: 6px; flex-wrap: wrap; padding-bottom: 6px; }
.cm-int { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.cm-int:hover { border-color: var(--brand); text-decoration: none; color: var(--ink); }
.cm-int i { width: 7px; height: 7px; border-radius: 50%; background: var(--ctl-line); }
.cm-int.on i { background: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); }
.cm-h2 { font: 700 18px var(--f-semi); }
.linkbtn { border: 0; background: none; color: var(--brand); font-weight: 700; cursor: pointer; padding: 0; text-decoration: underline; }

/* ---------- panes ---------- */
.cm-panes { display: grid; grid-template-columns: 168px 300px minmax(0, 1fr); gap: 12px; height: clamp(560px, calc(100vh - 252px), 900px); min-height: 0; }
.cm-panes.tl-open { grid-template-columns: 168px 290px minmax(0, 1fr); }
@media (min-width: 1400px) { .cm-panes.tl-open { grid-template-columns: 164px 288px minmax(0, 1fr) 268px; } }
.cm-panes > .card { min-height: 0; overflow: hidden; }
.cm-tl { display: none; }
@media (min-width: 1400px) { .cm-panes.tl-open .cm-tl { display: block; overflow-y: auto; } .cm-panes:not(.tl-open) .cm-tl { display: none; } }

/* folders */
.cm-folders { padding: 10px 8px; display: flex; flex-direction: column; gap: 2px; overflow-y: auto !important; }
.cm-fl { display: grid; gap: 2px; }
.cm-fl button, .cm-fl-l { display: flex; align-items: center; gap: 9px; width: 100%; border: 0; background: none; padding: 8px 10px; border-radius: var(--r-sm); font: 600 14px var(--f-ui); color: var(--ink-2); cursor: pointer; text-align: left; min-height: 36px; text-decoration: none; }
.cm-fl button:hover, .cm-fl-l:hover { background: var(--surface-3); color: var(--ink); text-decoration: none; }
.cm-fl button.on { background: var(--brand-soft); color: var(--brand); }
.cm-fl svg, .cm-fl-l svg { width: 16px; height: 16px; flex: none; }
.cm-fl i { margin-left: auto; font: 600 11.5px var(--f-num); font-style: normal; background: var(--surface-3); border-radius: 999px; padding: 0 7px; color: var(--ink-2); }
.cm-fl i.hot { background: var(--brand); color: #fff; }
.cm-fl-sep { height: 1px; background: var(--line-2); margin: 8px 4px; }
.cm-fl-h { font: 700 11px var(--f-num); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); padding: 2px 10px 6px; }
.cm-as { display: flex; gap: 4px; padding: 0 6px; flex-wrap: wrap; }
.cm-as button { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 3px 10px; font-weight: 600; font-size: 12.5px; cursor: pointer; color: var(--ink-2); min-height: 28px; }
.cm-as button[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }

/* thread list */
.cm-listpane { display: flex; flex-direction: column; }
.cm-lh { padding: 10px 10px 6px; display: grid; gap: 8px; border-bottom: 1px solid var(--line-2); }
.cm-lrow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.cm-aseg { display: none; }
.cm-search { position: relative; }
.cm-search span { position: absolute; left: 10px; top: 12px; color: var(--ink-3); }
.cm-search svg { width: 15px; height: 15px; display: block; }
.cm-search input { padding-left: 32px; min-height: 38px; }
.cm-lt { display: flex; justify-content: space-between; font: 700 12px var(--f-num); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); padding: 0 2px; }
.cm-lt .dim { font-weight: 500; text-transform: none; letter-spacing: 0; }
.cm-chipbar { display: none; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.cm-chipbar::-webkit-scrollbar { display: none; }
.cm-chipbar .chip { flex: none; min-height: 34px; text-decoration: none; }
.cm-chipbar .chip .n { font: 600 11px var(--f-num); opacity: .85; }
.cm-hid { margin: 8px 10px 0; padding: 8px 10px; border-radius: var(--r-sm); background: var(--warn-soft); color: var(--warn); font-size: 13px; font-weight: 600; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.cm-hid svg { width: 14px; height: 14px; }
.cm-list { overflow-y: auto; min-height: 0; flex: 1; }
.cm-th { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; padding: 11px 12px; border-bottom: 1px solid var(--line-2); color: var(--ink); text-decoration: none; position: relative; align-items: start; }
.cm-th:hover { background: var(--brand-tint); text-decoration: none; }
.cm-th.sel { background: var(--brand-soft); }
.cm-th.sel::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--brand); }
.cm-th .b, .cm-sch .b { display: grid; gap: 1px; min-width: 0; }
.cm-l1 { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; min-width: 0; }
.cm-l1 b { font-size: 14.5px; font-weight: 600; }
.cm-th.unread .cm-l1 b { font-weight: 800; }
.cm-time { font: 500 11.5px var(--f-num); color: var(--ink-3); white-space: nowrap; }
.cm-th.unread .cm-time { color: var(--brand); font-weight: 700; }
.cm-l2 { font-size: 12.5px; display: flex; gap: 6px; align-items: center; }
.cm-snip { display: flex; gap: 6px; align-items: center; font-size: 13px; color: var(--ink-2); min-width: 0; }
.cm-th.unread .cm-snip { color: var(--ink); font-weight: 600; }
.cm-ch svg { width: 13px; height: 13px; display: block; color: var(--ink-3); }
.cm-side { display: grid; gap: 6px; justify-items: end; align-content: start; min-width: 8px; padding-top: 3px; }
.cm-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--brand); display: block; }
.cm-sch { padding: 10px 12px; border-bottom: 1px solid var(--line-2); display: grid; gap: 8px; }
.cm-sch.sel { background: var(--brand-soft); }
.cm-sch-main { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; color: var(--ink); text-decoration: none; }
.cm-sch-main:hover { text-decoration: none; }
.cm-when { font-size: 12.5px; font-weight: 700; color: var(--warn); display: flex; align-items: center; gap: 5px; }
.cm-when svg { width: 13px; height: 13px; }
.cm-sch-a { display: flex; gap: 6px; padding-left: 40px; }

/* delivery status */
.cm-st { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: var(--ink-3); white-space: nowrap; }
.cm-st svg { width: 14px; height: 14px; flex: none; }
.cm-st.ok { color: var(--ok); } .cm-st.bad { color: var(--bad); } .cm-st.warn { color: var(--warn); }
.cm-side .cm-st span { display: none; }

/* ---------- conversation ---------- */
.cm-conv { display: flex; flex-direction: column; background: var(--surface); }
.cm-conv > .cm-msgs { flex: 1 1 auto; }
.cm-conv > .cm-ch-h, .cm-conv > .cm-subline, .cm-conv > .cm-reply { flex: none; }
.cm-ch-h { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-bottom: 1px solid var(--line-2); flex-wrap: wrap; }
.cm-ch-h .b { flex: 1; min-width: 190px; display: grid; gap: 3px; }
.cm-name { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cm-name a { font: 700 20px/1.1 var(--f-head); color: var(--ink); letter-spacing: .005em; }
.cm-chtag { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; color: var(--brand); background: var(--brand-soft); border-radius: 999px; padding: 1px 9px; }
.cm-chtag svg { width: 12px; height: 12px; }
.cm-links { display: flex; gap: 4px 12px; flex-wrap: wrap; }
.cm-consent { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 2px; }
.cm-acts { display: flex; gap: 2px; align-items: center; flex-wrap: wrap; }
.cm-tlbtn[aria-pressed="true"] { color: var(--brand); }
.cm-subline { padding: 8px 16px; font-size: 13.5px; border-bottom: 1px solid var(--line-2); background: var(--surface-2); }
.cm-msgs { overflow-y: auto; min-height: 0; padding: 14px 16px 6px; background: var(--surface-2); display: flex; flex-direction: column; gap: 14px; }
.cm-day { display: flex; justify-content: center; margin: 2px 0; }
.cm-day span { font: 600 11.5px var(--f-num); letter-spacing: .04em; color: var(--ink-3); background: var(--surface); border: 1px solid var(--line-2); border-radius: 999px; padding: 2px 12px; }
.cm-msg { display: grid; gap: 4px; max-width: min(88%, 640px); }
.cm-msg.in { justify-self: start; }
.cm-msg.out { justify-self: end; }
.cm-bub { padding: 10px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.cm-msg.in .cm-bub { border-top-left-radius: 4px; }
.cm-msg.out .cm-bub { background: var(--brand-soft); border-color: #c4dde0; border-top-right-radius: 4px; }
.cm-msg.sched .cm-bub { background: var(--surface); border: 1.5px dashed #d7b56a; }
.cm-txt { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14.5px; line-height: 1.5; }
.cm-subj { font: 700 14px var(--f-semi); margin-bottom: 4px; }
.cm-auto { justify-self: end; display: inline-flex; align-items: center; gap: 5px; font: 600 11.5px var(--f-num); color: var(--ink-3); letter-spacing: .02em; }
.cm-msg.in .cm-auto { justify-self: start; }
.cm-auto svg { width: 12px; height: 12px; }
.cm-auto.warn { color: var(--warn); }
.cm-meta { display: flex; gap: 4px 10px; align-items: center; flex-wrap: wrap; font-size: 12px; color: var(--ink-3); }
.cm-msg.out .cm-meta { justify-content: flex-end; }
.cm-chip { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 700; border-radius: 999px; padding: 1px 8px; background: var(--ok-soft); color: var(--ok); }
.cm-chip svg { width: 11px; height: 11px; }
.cm-chip.ai { background: var(--quar-soft); color: var(--quar); }
.cm-mini { border: 1px solid var(--line); background: var(--surface); border-radius: 6px; height: 24px; padding: 0 7px; display: inline-flex; gap: 4px; align-items: center; font: 600 11.5px var(--f-ui); color: var(--ink-3); cursor: pointer; opacity: .55; }
.cm-mini svg { width: 12px; height: 12px; }
.cm-msg:hover .cm-mini, .cm-mini:focus-visible { opacity: 1; color: var(--brand); border-color: var(--brand); }
.cm-stop { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; background: var(--bad-soft); color: var(--bad); border-radius: var(--r-sm); padding: 8px 12px; }
.cm-stop svg { width: 15px; height: 15px; flex: none; margin-top: 2px; }
.cm-atts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.cm-att { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--surface); border-radius: 8px; padding: 4px 6px 4px 9px; font-size: 12.5px; font-weight: 600; max-width: 100%; }
.cm-att svg { width: 14px; height: 14px; color: var(--brand); flex: none; }
.cm-att > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-att i { font: 500 11px var(--f-num); font-style: normal; color: var(--ink-3); }
.cm-att button { border: 0; background: none; cursor: pointer; width: 22px; height: 22px; display: grid; place-items: center; color: var(--ink-3); border-radius: 50%; }
.cm-att button:hover { background: var(--surface-3); color: var(--bad); }
.cm-att button svg { width: 12px; height: 12px; color: inherit; }

.cm-reply { border-top: 1px solid var(--line); background: var(--surface); padding: 10px 14px 12px; max-height: 46%; overflow-y: auto; }
.cm-empty { display: grid; gap: 10px; justify-items: center; align-content: center; text-align: center; padding: 56px 24px; height: 100%; background: radial-gradient(circle at 50% 0, var(--brand-tint), var(--surface) 60%); }
.cm-empty > svg { width: 38px; height: 38px; color: var(--brand); opacity: .75; }
.cm-empty h2 { font: 700 26px var(--f-head); }
.cm-empty p { max-width: 400px; }
.cm-ov { display: flex; gap: 12px; margin-top: 10px; flex-wrap: wrap; justify-content: center; }
.cm-ovc { border: 1px solid var(--line); background: var(--surface); border-radius: var(--r); padding: 14px 20px; min-width: 130px; cursor: pointer; display: grid; gap: 2px; box-shadow: var(--shadow-1); }
.cm-ovc:hover { border-color: var(--brand); }
.cm-ovc b { font: 700 32px/1 var(--f-head); }
.cm-ovc span { font-size: 13px; color: var(--ink-2); font-weight: 600; }

/* prospect timeline */
.cm-tl-h { padding: 14px 16px 0; }
.cm-tl-h h3 { font: 700 18px var(--f-semi); }
.cm-tl-b { padding: 12px 16px 18px; display: grid; gap: 12px; }
.cm-pcard { display: grid; gap: 10px; }
.ellipwrap { min-width: 0; display: grid; }
.cm-deal { display: flex; justify-content: space-between; gap: 8px; align-items: center; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 8px 10px; color: var(--ink); background: var(--brand-tint); text-decoration: none; font-size: 13px; }
.cm-deal:hover { border-color: var(--brand); text-decoration: none; }
.cm-deal > span:first-child { display: grid; min-width: 0; }
.cm-deal .dim { font: 500 11.5px var(--f-num); }
.cm-qa { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.cm-qa .btn { justify-content: flex-start; }
.cm-tl-sub { font: 700 11px var(--f-num); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.cm-tl-b .timeline .td { font-size: 13px; color: var(--ink); }
.cm-tl-drawer .cm-tl-h { display: none; }

/* ---------- composer ---------- */
.cm-comp { display: grid; gap: 10px; }
.cm-field { display: grid; gap: 5px; min-width: 0; }
.cm-field > label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.cm-to { position: relative; }
.cm-results { position: absolute; z-index: 5; left: 0; right: 0; top: calc(100% + 4px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); box-shadow: var(--shadow-2); max-height: 280px; overflow-y: auto; padding: 4px; }
.cm-res { display: flex; gap: 10px; align-items: center; width: 100%; border: 0; background: none; padding: 7px 8px; border-radius: 6px; cursor: pointer; text-align: left; min-height: 44px; }
.cm-res:hover, .cm-res:focus-visible { background: var(--brand-soft); outline: none; }
.cm-res .b { display: grid; flex: 1; min-width: 0; font-size: 13.5px; }
.cm-res .b span { font-size: 12.5px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-res-t { display: flex; gap: 4px; }
.cm-res-h, .cm-res-empty { font-size: 12px; color: var(--ink-3); padding: 6px 8px; font-weight: 600; }
.cm-to-sel { display: flex; align-items: center; gap: 10px; border: 1px solid var(--ctl-line); border-radius: var(--r-sm); padding: 4px 6px 4px 10px; min-height: 42px; background: var(--brand-tint); }
.cm-to-sel .b { display: grid; flex: 1; min-width: 0; font-size: 14px; }
.cm-to-sel .b span { font-size: 12.5px; color: var(--ink-3); }
.cm-from, .cm-ctx { display: flex; gap: 6px 12px; align-items: center; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-3); }
.cm-from svg, .cm-ctx svg { width: 14px; height: 14px; }
.cm-from, .cm-ctx > span:first-child { display: inline-flex; align-items: center; gap: 6px; }
.cm-ctx { justify-content: space-between; margin-bottom: -2px; }
.cm-block { display: flex; gap: 10px; align-items: center; background: var(--bad-soft); color: var(--bad); border: 1px solid #ecc3bc; border-radius: var(--r-sm); padding: 10px 12px; flex-wrap: wrap; }
.cm-block > svg { width: 18px; height: 18px; flex: none; }
.cm-block .b { flex: 1; min-width: 180px; display: grid; gap: 1px; font-size: 13.5px; }
.cm-block .b span { color: var(--ink); font-size: 13px; }
.cm-block .btn { background: var(--surface); }
.cm-body { min-height: 90px; }
.cm-comp.inline .cm-body { min-height: 66px; }
.cm-skel { display: grid; gap: 8px; padding: 12px; border: 1px dashed #d9c9ef; border-radius: var(--r-sm); background: #faf6ff; }
.cm-skel i { height: 10px; border-radius: 6px; background: linear-gradient(90deg, #eadff8, #f6f0fc, #eadff8); background-size: 200% 100%; animation: cm-shim 1.1s linear infinite; }
.cm-skel i:nth-child(2) { width: 82%; } .cm-skel i:nth-child(3) { width: 55%; }
.cm-skel span { display: inline-flex; gap: 6px; align-items: center; font-size: 12.5px; color: var(--quar); font-weight: 600; }
.cm-skel svg { width: 14px; height: 14px; }
@keyframes cm-shim { to { background-position: -200% 0; } }
.cm-aitag { display: flex; gap: 6px; align-items: center; font-size: 12.5px; color: var(--quar); background: var(--quar-soft); border-radius: var(--r-sm); padding: 6px 10px; }
.cm-aitag svg { width: 14px; height: 14px; flex: none; }
.cm-tools { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.cm-count { margin-left: auto; font: 600 12px var(--f-num); color: var(--ink-3); }
.cm-count.warn { color: var(--warn); }
.cm-sched { display: grid; gap: 8px; padding: 10px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface-2); }
.cm-sched-r { display: flex; gap: 10px; flex-wrap: wrap; }
.cm-sched-r label { display: grid; gap: 4px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); flex: 1; min-width: 130px; }
.cm-warn, .cm-hint { display: flex; gap: 8px; align-items: center; font-size: 13px; border-radius: var(--r-sm); padding: 8px 10px; flex-wrap: wrap; }
.cm-warn { background: var(--warn-soft); color: var(--warn); font-weight: 600; }
.cm-hint { color: var(--ok); background: var(--ok-soft); font-weight: 600; }
.cm-warn svg, .cm-hint svg { width: 15px; height: 15px; flex: none; }
.cm-warn span { flex: 1; min-width: 160px; }
.cm-foot { display: flex; gap: 8px; justify-content: flex-end; position: sticky; bottom: -16px; background: var(--surface); padding: 8px 0 2px; }
.cm-comp.inline .cm-foot { position: static; padding: 0; }

/* ---------- sequences ---------- */
.cm-seqs { align-items: start; }
.cm-steps { list-style: none; margin: 4px 0 14px; padding: 0; display: flex; gap: 0; overflow-x: auto; padding-bottom: 4px; }
.cm-steps li { display: grid; justify-items: center; gap: 5px; position: relative; min-width: 92px; flex: 1; text-align: center; }
.cm-steps li::before { content: ""; position: absolute; top: 31px; left: -50%; width: 100%; height: 2px; background: var(--line); z-index: 0; }
.cm-steps li:first-child::before { display: none; }
.cm-steps .d { font: 700 11px var(--f-num); color: var(--ink-3); letter-spacing: .04em; text-transform: uppercase; }
.cm-steps .n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); position: relative; z-index: 1; border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--line); }
.cm-steps .n.sms { background: var(--quar-soft); color: var(--quar); }
.cm-steps .n svg { width: 14px; height: 14px; }
.cm-steps .t { font-size: 12.5px; font-weight: 600; color: var(--ink-2); line-height: 1.25; padding: 0 4px; }
.cm-stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); padding: 10px 0; margin-bottom: 12px; }
.cm-stats div { display: grid; gap: 1px; text-align: center; }
.cm-stats b { font: 700 20px var(--f-head); }
.cm-stats span { font-size: 11.5px; color: var(--ink-3); font-weight: 600; }
.cm-sa { gap: 6px; }
.cm-elist { border: 1px solid var(--line); border-radius: var(--r-sm); max-height: 340px; overflow-y: auto; }
.cm-erow { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--line-2); cursor: pointer; min-height: 48px; }
.cm-erow:hover { background: var(--brand-tint); }
.cm-erow.off { opacity: .6; cursor: not-allowed; }
.cm-erow input { width: 18px; height: 18px; accent-color: var(--brand); flex: none; }
.cm-erow .b { display: grid; flex: 1; min-width: 0; font-size: 14px; }
.cm-erow .b .dim { font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-esum { margin-top: 10px; font-weight: 600; font-size: 13.5px; color: var(--ink-2); }
.cm-bsteps { display: grid; gap: 8px; }
.cm-bstep { display: grid; grid-template-columns: auto 92px minmax(0, 1fr) auto; gap: 10px; align-items: end; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 8px 10px; background: var(--surface-2); }
.cm-bn { width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font: 700 12px var(--f-num); align-self: center; }
.cm-bday { display: grid; gap: 3px; font-size: 12px; font-weight: 600; color: var(--ink-3); }
.cm-bio { display: flex; gap: 2px; }
.rot-up { display: inline-flex; transform: rotate(180deg); }
.rot-up svg { width: 16px; height: 16px; }

/* ---------- templates ---------- */
.cm-tpls { align-items: stretch; }
.cm-tpl { display: flex; flex-direction: column; }
.cm-tpl .card-b { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.cm-tsub { font-weight: 700; font-size: 14px; }
.cm-tbody { white-space: pre-wrap; font-size: 13.5px; color: var(--ink-2); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; background: var(--surface-2); border-radius: var(--r-sm); padding: 10px 12px; flex: 1; }
.cm-mf { background: #fbf0d9; color: var(--warn); border-radius: 4px; padding: 0 3px; font: 600 12.5px var(--f-num); }
.cm-tuse { font-size: 12.5px; display: flex; gap: 6px; align-items: center; color: var(--ink-2); }
.cm-tuse svg { width: 13px; height: 13px; flex: none; }
.cm-ta { gap: 6px; }
.cm-tedit { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.cm-ins { display: flex; gap: 5px; flex-wrap: wrap; align-items: center; margin-top: 6px; }
.cm-ins .chip { font: 600 12px var(--f-num); padding: 2px 8px; min-height: 28px; }
.cm-prev { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px; background: var(--surface-2); display: grid; gap: 8px; }
.cm-prev-h { font: 700 11.5px var(--f-num); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); display: flex; gap: 6px; align-items: center; }
.cm-prev-h svg { width: 14px; height: 14px; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .cm-panes, .cm-panes.tl-open { grid-template-columns: 300px minmax(0, 1fr); }
  .cm-folders { display: none; }
  .cm-chipbar { display: flex; }
  .cm-aseg { display: inline-flex; }
}
@media (max-width: 760px) { .cm-tedit { grid-template-columns: 1fr; } .cm-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 12px; } }
@media (max-width: 640px) {
  .cm-panes, .cm-panes.tl-open { grid-template-columns: minmax(0, 1fr); height: auto; }
  .cm-panes > .card { overflow: visible; }
  .cm-panes.has-thread .cm-listpane, .cm-panes.has-thread .cm-tl { display: none; }
  .cm-panes:not(.has-thread) .cm-conv { display: none; }
  .cm-list { overflow: visible; }
  .cm-conv { display: block; }
  .cm-msgs { overflow: visible; padding-bottom: 10px; }
  .cm-reply { max-height: none; }
  .cm-ch-h { position: sticky; top: var(--top-h); z-index: 6; background: var(--surface); border-radius: var(--r) var(--r) 0 0; padding: 10px 12px; gap: 8px; }
  .cm-ch-h .avatar.lg { width: 36px; height: 36px; font-size: 14px; }
  .cm-ch-h .b { min-width: 0; flex-basis: calc(100% - 100px); }
  .cm-acts { width: 100%; justify-content: flex-start; padding-left: 0; border-top: 1px solid var(--line-2); padding-top: 6px; }
  .cm-acts .btn { min-height: 40px; min-width: 40px; }
  .cm-msg { max-width: 94%; }
  .cm-th { padding: 12px; min-height: 64px; }
  .cm-bstep { grid-template-columns: auto 1fr; } .cm-bstep select { grid-column: 1 / -1; grid-row: 2; } .cm-bio { grid-column: 2; grid-row: 1; justify-self: end; }
  .cm-intg { display: none; }
  .cm-subbar { gap: 0; }
  .cm-count { margin-left: 0; width: 100%; }
  .cm-tools .btn { min-height: 40px; }
  .cm-comp .btn.primary { min-height: 44px; flex: 1; }
  .cm-foot { bottom: -10px; }
  .cm-steps li { min-width: 84px; }
  .cm-sa .btn { min-height: 40px; }
}

.cm-sp { flex: 1; }
.cm-comp.inline { gap: 8px; }
.cm-comp.inline .cm-tools .btn.sm { padding: 4px 9px; }
.cm-comp.inline .cm-tools .btn.primary { min-height: 34px; }
.cm-comp.inline .cm-count { margin-left: 0; }
.cm-ctx .ellip { max-width: 360px; display: inline-block; vertical-align: bottom; color: var(--ink-2); }
@media (max-width: 640px) { .cm-comp.inline .cm-tools .btn.primary { flex: 1 1 100%; min-height: 44px; } .cm-sp { display: none; } }

.cm-comp, .cm-reply { min-width: 0; }
.cm-comp.inline .cm-lbl { display: none; }
@media (max-width: 640px) { .cm-comp.inline .cm-lbl { display: inline; } }
