/* Record thread: Log note / Send message composer, e-mail lines, change (tracking) lines, activity type colours. Owner: chatter.js, discuss-kit.js, activities/. */

/* ------------------------------------------------------------ Log note | Send message */
.chm-modes { display: inline-flex; gap: 4px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel-2); justify-self: start; max-width: 100%; }
.chm-mode { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font: inherit; font-weight: 700; font-size: 13.5px; cursor: pointer; }
.chm-mode:hover:not(:disabled):not(.on) { color: var(--ink); background: var(--panel-3); }
.chm-mode.on { background: var(--accent-soft); color: var(--accent-d); }
.chm-mode:disabled { opacity: .55; cursor: not-allowed; }
.chm-hint { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0; padding: 8px 12px; border: 1px dashed var(--line); border-radius: var(--r-sm); background: var(--panel-2); color: var(--muted); font-size: 13px; }
.chm-hint .ico { flex: 0 0 auto; }
.chm-link { color: var(--accent-d); font-weight: 700; text-decoration: underline; }
.chm-form { display: grid; gap: 10px; }
.chm-form .field input, .chm-form .field select, .chm-form .field textarea { inline-size: 100%; min-block-size: 44px; }
.chm-form .field textarea { min-block-size: 120px; line-height: 1.45; }
.chm-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.chm-actions { display: flex; justify-content: flex-end; }
.chm-busy .chm-form { opacity: .6; pointer-events: none; }
.chm-compact .empty { padding: 18px 12px; gap: 6px; }
.chm-compact .empty-ico { width: 44px; height: 44px; }
.chm-compact .empty h3 { font-size: 15px; }

/* ------------------------------------------------------------ thread lines */
.chm-kind { display: inline-flex; align-items: center; gap: 4px; padding: 0 7px; border-radius: 999px; background: var(--panel-3); color: var(--muted); font-size: 11px; font-weight: 700; line-height: 18px; }
.chm-kind.mail { background: var(--info-soft); color: var(--info-ink); }
.chm-to { margin-block-start: 1px; }
.chm-subject { font-weight: 750; margin-block: 2px; overflow-wrap: anywhere; }
.ch-list .chm-mail { border-inline-start: 3px solid var(--info); padding-inline-start: 8px; }
.chm-track { display: flex; gap: 10px; align-items: flex-start; padding: 6px 4px; color: var(--muted); font-size: 13px; }
.chm-dot { flex: 0 0 auto; display: grid; place-items: center; inline-size: 36px; }
.chm-dot .ico { padding: 4px; box-sizing: content-box; border-radius: 50%; background: var(--panel-3); color: var(--muted); }
.chm-track-main { flex: 1; min-width: 0; display: grid; gap: 2px; }
.chm-track-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.chm-track-head b { color: var(--ink); font-weight: 650; }
.chm-step { padding: 0 7px; border-radius: 999px; background: var(--ok-soft); color: var(--ok-ink); font-size: 11.5px; font-weight: 700; line-height: 18px; }
.chm-changes { display: flex; flex-direction: column; gap: 1px; }
.chm-change { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; overflow-wrap: anywhere; }
.chm-field { font-weight: 650; color: var(--ink); }
.chm-from { text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--muted) 60%, transparent); }
.chm-change > .chm-to { color: var(--ink); font-weight: 650; }
.chm-arrow { display: inline-flex; color: var(--muted); }
.ch-list .chm-track + .dsc-msg, .ch-list .dsc-msg + .chm-track { border-top: 1px solid var(--line-2); }

@media (max-width: 720px) {
  .chm-two { grid-template-columns: 1fr; }
  .chm-modes { justify-self: stretch; }
  .chm-mode { flex: 1; justify-content: center; min-height: 44px; }
  .chm-send { inline-size: 100%; justify-content: center; min-height: 44px; }
  .chm-actions { display: block; }
}

/* ------------------------------------------------------------ activity type colours (type chips and the type buttons of the schedule dialog) */
.act-c-grey   { --tc: #6f655c; }
.act-c-blue   { --tc: #2f6fb0; }
.act-c-green  { --tc: #237a4b; }
.act-c-orange { --tc: #b45f06; }
.act-c-red    { --tc: #b23f3b; }
.act-c-purple { --tc: #7a4fb0; }
.act-c-teal   { --tc: #0f766e; }
.act-c-pink   { --tc: #b83c78; }
:root[data-theme="dark"] .act-c-grey   { --tc: #ab9e93; }
:root[data-theme="dark"] .act-c-blue   { --tc: #6fa8dc; }
:root[data-theme="dark"] .act-c-green  { --tc: #58c487; }
:root[data-theme="dark"] .act-c-orange { --tc: #e6a24a; }
:root[data-theme="dark"] .act-c-red    { --tc: #ec7b77; }
:root[data-theme="dark"] .act-c-purple { --tc: #b79be0; }
:root[data-theme="dark"] .act-c-teal   { --tc: #4fc4b8; }
:root[data-theme="dark"] .act-c-pink   { --tc: #ea8fb8; }
.act-chip.tone-neutral.act-tc { background: color-mix(in srgb, var(--tc) 15%, var(--panel)); color: color-mix(in srgb, var(--tc) 85%, var(--ink)); }
.act-type-btn.act-tc { border-color: color-mix(in srgb, var(--tc) 45%, var(--line)); }
.act-type-btn.act-tc .ico { color: var(--tc); }
.act-type-btn.act-tc:hover { border-color: var(--tc); }
.act-type-btn.act-tc[aria-pressed="true"] { border-color: var(--tc); background: color-mix(in srgb, var(--tc) 18%, var(--panel)); color: color-mix(in srgb, var(--tc) 85%, var(--ink)); box-shadow: 0 0 0 2px color-mix(in srgb, var(--tc) 25%, transparent); }
.act-offer { margin-inline-start: 10px; }
