/* Channel Preview pages (omni237 CH1, CH2, CH8, CH9): layout only, on pack tokens. The components are
   SM360.UI's; nothing here restyles one. Class names start chn- so they cannot meet another Preview
   family's rules. */
.chn { display: flex; flex-direction: column; gap: 16px; }
.chn-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 6px 0 0; font-size: 0.8125rem; color: var(--sm360-text-muted); }
.chn-stack { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.chn-two { display: grid; gap: 16px; align-items: start; }
.chn-two > * { min-width: 0; }
.chn-two-wide-left { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.chn-two-left-narrow { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
.chn-scope { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.chn-filters { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin: 0 0 12px; font-size: 0.8125rem; }
.chn-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; justify-content: flex-end; }
.chn-hint, .chn-muted { font-size: 0.8125rem; color: var(--sm360-text-muted); }
.chn-muted { margin: 8px 0 0; }
.chn-body { margin: 0; font-size: 0.875rem; line-height: 1.55; }
.chn-cell-name { display: block; font-weight: 500; font-size: 0.875rem; }
.chn-cell-sub { display: block; font-size: 0.75rem; color: var(--sm360-text-muted); }
.chn-kv { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; font-size: 0.875rem; border-top: 1px solid var(--sm360-border-primary); }
.chn-total { font-weight: 600; }
.chn-answer { font-weight: 600; }
.chn-figure { font: 500 26px var(--mono); }
.chn-provider { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.chn-provider-text { flex: 1 1 240px; min-width: 0; }
.chn-provider-name { margin: 0; font-size: 1.125rem; font-weight: 600; }
.chn-row-pick { display: block; width: 100%; padding: 4px 8px; border: 0; border-left: 3px solid transparent; background: transparent; color: inherit; text-align: left; cursor: pointer; font: inherit; }
.chn-row-pick:hover { background: var(--sm360-bg-secondary); }
.chn-row-pick[aria-current="true"] { border-left-color: var(--sm360-action, var(--sm360-primary)); background: var(--sm360-bg-secondary); }
.chn-chips { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 8px; }
.chn-rules { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 0.875rem; }
.chn-thread { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.chn-msg { max-width: 92%; }
.chn-msg-in { align-self: flex-start; }
.chn-msg-out { align-self: flex-end; background: var(--sm360-primary-subtle, var(--sm360-bg-secondary)); }
.chn .sm360-btn[aria-pressed="true"] { background: var(--sm360-action, var(--sm360-primary, var(--sm360-teal))); border-color: var(--sm360-action, var(--sm360-primary, var(--sm360-teal))); color: var(--sm360-action-ink, var(--sm360-tenant-on-brand, #ffffff)); }
/* A wide grid in a narrow column keeps its columns and scrolls sideways; a clipped "Last …"
   column reads as a missing fact (omni237#2118 item 4, the rule from omni237#2064 item 4). */
.chn-table { min-width: 0; }
.chn-table .sm360-table-container { overflow-x: auto; }
.chn-table .sm360-table, .chn-table .sm360-table th, .chn-table .sm360-table td { white-space: nowrap; }

@media (max-width: 720px) {
    .chn-two-wide-left, .chn-two-left-narrow { grid-template-columns: minmax(0, 1fr); }
    .chn-msg { max-width: 100%; }
}
