/* Funnel view and dashboard notes. Tokens from app.css. */
.funnel { display: flex; flex-direction: column; gap: 16px; }
.fhead { padding: 18px 20px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px 24px; align-items: end; }
.fintro h2 { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 26px; line-height: 1.1; }
.fintro p { margin: 4px 0 0; color: var(--muted); font-size: 12.5px; }
.fbar { grid-column: 1 / -1; display: flex; gap: 3px; height: 30px; }
.fseg { color: var(--on-stage); min-width: 28px; display: flex; align-items: center; gap: 8px; padding: 0 10px; border-radius: 8px; font-size: 11.5px; white-space: nowrap; overflow: hidden; }
.fseg b { font-variant-numeric: tabular-nums; }
.fseg.s0 { background: var(--stage-0); } .fseg.s1 { background: var(--stage-1); } .fseg.s2 { background: var(--stage-2); } .fseg.s3 { background: var(--stage-3); color: var(--on-stage-3); }
.fseg.none { background: var(--raised); color: var(--sub); }
.fcols { display: grid; grid-template-columns: repeat(5, minmax(220px, 1fr)); gap: 12px; align-items: start; overflow-x: auto; padding-bottom: 6px; }
.fcol { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.fcol header { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; padding: 10px 12px; border-radius: var(--radius-md); background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--niq-purple-2); }
.fcol header { border-top-color: var(--stage-2); } .fcol.s0 header { border-top-color: var(--stage-0); } .fcol.s1 header { border-top-color: var(--stage-1); } .fcol.s3 header { border-top-color: var(--stage-3); }
.fcol.none header { border-top-color: var(--line-strong); border-top-style: dashed; }
.fcol h3 { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 21px; line-height: 1.1; }
.fcol header small { display: block; color: var(--muted); font-size: 11px; margin-top: 2px; }
.fcount { font-family: var(--font-display); font-size: 24px; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.fper { display: flex; flex-wrap: wrap; gap: 4px 10px; padding: 0 4px; font-size: 11.5px; color: var(--muted); }
.fper b { color: var(--text); font-variant-numeric: tabular-nums; }
.fper .p1 b { color: var(--bad); }
.fitems { display: flex; flex-direction: column; gap: 6px; }
.fitem { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border-radius: var(--radius-md); text-decoration: none; transition: border-color var(--fast) var(--ease-out); }
.fitem:hover { border-color: var(--accent-2); }
.fitem.p1 { box-shadow: inset 3px 0 0 var(--bad), var(--shadow-card); }
.fitem.stale { border-style: dashed; }
.fitem .top { display: flex; gap: 5px; align-items: center; flex-wrap: wrap; }
.fitem .top .mono { color: var(--muted); font-size: 11px; }
.fitem .who { margin-left: auto; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); font-size: 11px; font-weight: 600; flex: none; }
.fitem .tx { font-size: 12.5px; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.warnline { color: var(--warn); font-size: 11px; font-weight: 500; }
.fempty { margin: 0; padding: 10px 12px; color: var(--muted); font-size: 12.5px; border: 1px dashed var(--line); border-radius: var(--radius-md); }

/* Dashboard notes (GitHub issues labelled "dashboard") */
.notes-block { display: flex; flex-direction: column; gap: 8px; }
.nlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.nlist li { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; padding: 7px 10px; border-radius: var(--radius-sm); background: var(--surface-2); border-left: 3px solid var(--niq-highlight); }
.nlist a { text-decoration: none; min-width: 0; overflow-wrap: anywhere; }
.nlist a:hover { text-decoration: underline; }
.nlist span { color: var(--muted); font-size: 11px; white-space: nowrap; }
.nform { display: flex; flex-direction: column; gap: 6px; }
.nform textarea { width: 100%; min-height: 64px; resize: vertical; font: inherit; font-size: 13px; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 9px 11px; }
.nform textarea:focus { outline: none; border-color: var(--accent-2); box-shadow: 0 0 0 3px var(--tint-purple); }
.nform .row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.nform small { color: var(--muted); font-size: 11px; }
.nsend { border: 0; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-weight: 600; font-size: 12.5px; min-height: 36px; padding: 0 16px; }
.nsend:hover { background: var(--accent-hover); }
.nsend:disabled { opacity: .5; cursor: default; }
.nopen { border: 1px dashed var(--line-strong); background: transparent; border-radius: var(--radius-md); min-height: 36px; font-size: 12.5px; color: var(--sub); text-align: left; padding: 0 12px; }
.nopen:hover { border-color: var(--accent-2); color: var(--text); }
@media (max-width: 720px) { .fhead { grid-template-columns: 1fr; } }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--line); background: var(--surface); padding: 0 14px; min-height: 36px; border-radius: 999px; font-size: 12.5px; color: var(--sub); transition: border-color var(--fast) var(--ease-out); }
.chip:hover { border-color: var(--accent-2); color: var(--text); }
.chip[aria-pressed="true"] { border-color: var(--accent-2); background: var(--tint-purple); color: var(--text); font-weight: 500; }
.chip .n { margin-left: 6px; color: var(--muted); font-variant-numeric: tabular-nums; }
