/* The Channels page (channels.js, docs/CONNECTORS.md step 5). Flat: hairlines between items, a rule on the left for
   whose words, no boxed cards. One column on a phone. Every class here starts with ch-. */
.ch-page { max-width: 980px; }
.ch-sec { margin: 0 0 30px; }
.ch-sec h2 { font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--text-2); font-weight: 600; margin: 0 0 8px; display: flex; gap: 8px; align-items: baseline; }
.ch-sec h2 .n { color: var(--text-3); font-weight: 500; }
.ch-list { border-top: var(--hair); }
.ch-item, .ch-msg { padding: 14px 0 16px; border-bottom: var(--hair); min-width: 0; }
.ch-row { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.ch-row .mono { font-family: var(--mono, monospace); font-size: 12px; overflow-wrap: anywhere; }
.ch-meta { display: flex; flex-wrap: wrap; gap: 2px 14px; font-size: 12.5px; color: var(--text-2); margin-top: 4px; }
.ch-meta .warn, .ch-warn { color: var(--warn); }
.ch-sub { margin: 6px 0 0; font-size: 13.5px; color: var(--text-2); max-width: 720px; }
.ch-small { font-size: 12.5px; margin: 6px 0 0; }
.ch-none { padding: 14px 0; }
.ch-k { display: block; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); margin-bottom: 4px; }
.ch-steps { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--text-3); counter-reset: s; }
.ch-steps li { counter-increment: s; padding-left: 22px; position: relative; }
.ch-steps li::before { content: counter(s); position: absolute; left: 0; width: 16px; text-align: center; font-size: 11px; color: var(--text-3); }
.ch-steps li.done { color: var(--text-2); }
.ch-steps li.done::before { content: '✓'; color: var(--canopy); }
.ch-steps li.next { color: var(--text); font-weight: 600; }
.ch-act { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin-top: 12px; }
.ch-act > .ch-small { flex-basis: 100%; margin: 0; }
.ch-key { display: flex; flex-direction: column; gap: 6px; flex-basis: 100%; max-width: 520px; padding-left: 12px; border-left: 2px solid var(--canopy); }
.ch-key label { display: flex; flex-direction: column; }
.ch-key input, .ch-draft textarea, .ch-proj select { width: 100%; box-sizing: border-box; background: var(--ink-2); border: 1px solid var(--control); border-radius: 4px; padding: 8px 10px; color: var(--text); font: 14px var(--sans); outline: 0; }
.ch-key input:focus, .ch-draft textarea:focus { border-color: var(--canopy); }
.ch-key button { align-self: flex-start; }
.ch-proj { display: inline-flex; gap: 8px; align-items: center; font-size: 12.5px; color: var(--text-2); }
.ch-proj select { width: auto; max-width: 60vw; padding: 5px 8px; font-size: 13px; }
.ch-said { margin-top: 10px; padding: 2px 0 2px 12px; border-left: 2px solid var(--sky); min-width: 0; }
.ch-said p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13.5px; }
.ch-draft { margin-top: 10px; padding: 2px 0 2px 12px; border-left: 2px solid var(--canopy); max-width: 760px; }
.ch-draft p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.ch-draft textarea { resize: vertical; }
.ch-addr { font-size: 12px; overflow-wrap: anywhere; word-break: break-all; }
.ch-accounts { list-style: none; margin: 6px 0 0; padding: 0; font-size: 13px; }
.linkbtn.ch-small { background: none; border: 0; color: var(--canopy-2); padding: 0; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; margin-top: 10px; display: inline-block; }
@media (max-width: 640px) {
  .ch-act .btn { flex: 1 1 auto; }
  .ch-proj { flex-basis: 100%; }
  .ch-proj select { flex: 1; max-width: none; }
}
/* Conversations step 6: a DM is a conversation; each row opens it. Flat: a hairline between rows, no box. */
.ch-conv { display: block; padding: 10px 0; border-bottom: var(--hair); color: inherit; text-decoration: none; min-width: 0; }
.ch-conv:hover b { text-decoration: underline; }
.ch-conv .ch-row { flex-wrap: wrap; }
/* CONVERSATIONS §12h: a kind of channel and a channel, each with its answer mode. The control is console.css's .md. */
.ch-type { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 6px 16px; align-items: start; padding: 12px 0 14px; }
.ch-type > .ch-row { padding-top: 6px; }
.ch-mode { margin-top: 10px; max-width: 640px; }
@media (max-width: 640px) {
  .ch-type { grid-template-columns: minmax(0, 1fr); }
  .ch-type > .ch-row { padding-top: 0; }
}
