/* Shared «Воронка каналов» block (dashboard/channel-funnel.mjs, ported from docs/mockups/_shared). Tokens from dashboard/app.css only; container-first. */
.cf { container-type: inline-size; isolation: isolate; margin: 0 0 20px; padding: 16px 18px 14px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.cf-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-bottom: 12px; }
.cf-top h2 { margin: 0; font-size: 16px; font-weight: 650; }
.cf-meta { color: var(--muted); font-size: 12.5px; }
.cf-grid { display: grid; gap: 12px; }
.cf-row { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 6px 14px; align-items: stretch; }
.cf-head { display: grid; align-content: center; gap: 2px; min-width: 0; }
.cf-head strong { font-size: 14.5px; font-weight: 700; }
.cf-head small { color: var(--muted); font-size: 12.5px; }
.cf-cells { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; min-width: 0; }
.cf-cell { display: grid; gap: 3px; align-content: start; min-width: 0; min-height: 44px; padding: 8px 10px; text-align: left; color: var(--ink); background: var(--canvas); border: 1px solid var(--line-2); border-radius: 8px; cursor: pointer; font: inherit; }
.cf-cell:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .cf-cell:hover { border-color: var(--green-line); } }
.cf-cell.is-dim { opacity: .55; }
.cf-cell.is-active { border-color: var(--graphite); box-shadow: inset 0 0 0 1px var(--graphite); }
.cf-cell.is-final { background: var(--green-soft); border-color: var(--green-line); }
.cf-cell.is-missing { background: var(--tint); border-style: dashed; }
.cf-label { color: var(--ink-2); font-size: 12px; font-weight: 600; line-height: 1.25; overflow-wrap: anywhere; }
.cf-n { font-size: 20px; font-weight: 700; line-height: 1.15; font-variant-numeric: tabular-nums; }
.cf-bar { height: 4px; background: var(--line-2); border-radius: 2px; overflow: hidden; }
.cf-bar i { display: block; height: 100%; background: var(--graphite); }
.cf-cell.is-final .cf-bar i { background: var(--green-btn); }
.cf-loss { font-size: 12px; font-weight: 650; color: var(--amber); font-variant-numeric: tabular-nums; }
.cf-loss-zero { color: var(--muted); font-weight: 500; }
.cf-notes { grid-column: 2; display: flex; flex-wrap: wrap; gap: 6px; }
@container (max-width: 980px) {
  .cf-row { grid-template-columns: minmax(0, 1fr); }
  .cf-notes { grid-column: 1; }
  .cf-cells { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@container (max-width: 520px) {
  .cf-cells { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cf-n { font-size: 18px; }
}
@media (max-width: 560px) { .cf { padding: 14px 12px; } }
