.funnel-heading { display:flex; align-items:baseline; gap:16px; flex-wrap:wrap; margin-bottom:6px; }
.funnel-heading h1, .funnel-heading h2 { margin:0; }
.funnel-board { display:grid; grid-template-columns:minmax(460px,2.4fr) repeat(4,minmax(230px,1fr)); gap:12px; overflow-x:auto; padding-bottom:12px; align-items:start; }
.funnel-column { background:var(--surface-2); border:1px solid var(--border); border-radius:var(--radius); padding:12px; min-width:0; }
.funnel-column h2 { margin:0; display:flex; justify-content:space-between; align-items:center; gap:4px; font-size:14px; }
.funnel-column h2 .badge { background:var(--surface); }
.funnel-hint { font-size:12px; color:var(--muted); min-height:36px; margin:6px 0; }
.funnel-cards { display:flex; flex-direction:column; gap:8px; max-height:75vh; min-height:250px; overflow-y:auto; }
.funnel-column-wide .funnel-cards { display:grid; grid-template-columns:repeat(auto-fill,minmax(200px,1fr)); align-content:start; }
.funnel-card { padding:10px 12px; background:var(--surface); border:1px solid var(--border); border-radius:8px; overflow-wrap:anywhere; cursor:pointer; box-shadow:var(--shadow-sm); transition:box-shadow .12s, border-color .12s; }
.funnel-card:hover { border-color:var(--border-strong); box-shadow:var(--shadow-md); }
.funnel-card[data-funnel-drag] { cursor:grab; }
.funnel-card-drag { z-index:50; pointer-events:none; cursor:grabbing; box-shadow:0 8px 20px rgb(0 0 0 / 20%); }
.funnel-card-hole { border:1px dashed var(--border-strong); border-radius:8px; }
.funnel-drop-target { outline:2px dashed var(--muted); outline-offset:-2px; }
.funnel-tone-hot, .funnel-tone-over { border-left:3px solid var(--urgent); }
.funnel-tone-soon { border-left:3px solid var(--rev); }
.funnel-tone-week { border-left:3px solid var(--normal); }
.funnel-card.funnel-tone-over { background:var(--danger-soft); }
.funnel-card h3 { font-size:13px; font-weight:600; line-height:1.35; margin:6px 0 8px; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
.funnel-meta { display:flex; justify-content:space-between; align-items:baseline; font-size:12px; color:var(--muted); gap:6px; }
.funnel-price { font-weight:600; margin-bottom:4px; }
.funnel-left { font-size:13px; font-weight:600; }
.due-hot, .due-over { color:var(--urgent); }
.due-soon { color:var(--rev); }
.due-week { color:var(--normal); }
.due-ok, .due-none { color:var(--muted); font-weight:500; }
.funnel-when, .funnel-customer { font-size:12px; color:var(--muted); }
.funnel-customer { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.funnel-note { border-top:1px solid var(--line); padding-top:8px; margin:8px 0 0; white-space:pre-wrap; }
.funnel-finished { overflow-x:auto; }
.funnel-finished summary { cursor:pointer; font-weight:600; }
.funnel-finished table { margin-top:12px; }
.funnel-finished tbody tr[data-funnel-preview] { cursor:pointer; }
.funnel-finished tbody tr[data-funnel-preview]:hover { background:var(--soft); }
.workflow { scroll-margin-top:16px; }
.workflow-edit summary, .team-edit summary { cursor:pointer; color:var(--accent); font-weight:500; }
.workflow-edit form { margin-top:10px; }
.workflow h3 { font-size:15px; margin:22px 0 4px; }
.team-label { display:block; margin:10px 0; }
.team-label textarea { display:block; width:100%; max-width:850px; margin-top:5px; resize:vertical; }
.team-comment { border-top:1px solid var(--border); padding:12px 0; scroll-margin-top:16px; overflow-wrap:anywhere; }
.team-text { white-space:pre-wrap; overflow-wrap:anywhere; margin:6px 0; }
.team-comment .muted, .team-edit { font-size:12px; }
.team-compose { border-top:1px solid var(--line); margin-top:12px; padding-top:8px; }
.team-actions { display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.team-actions input { max-width:100%; }
@media(max-width:900px) {
  .funnel-board { grid-template-columns:minmax(280px,70vw) repeat(4,minmax(230px,60vw)); }
  .funnel-column-wide .funnel-cards { grid-template-columns:1fr; }
  .team-actions label { max-width:100%; }
}
.funnel-dialog { width:min(720px,calc(100vw - 24px)); max-height:90vh; padding:20px 22px; border:1px solid var(--border); border-radius:14px; color:var(--fg); background:var(--surface); overflow-y:auto; box-shadow:0 20px 50px rgb(0 0 0 / 18%); }
.funnel-dialog::backdrop { background:rgb(24 24 27 / 40%); backdrop-filter:blur(2px); }
.funnel-dialog-top { display:flex; justify-content:space-between; align-items:center; gap:12px; }
.funnel-brief-title { font-size:18px; margin:16px 0 10px; overflow-wrap:anywhere; }
.funnel-brief-meta { display:flex; gap:6px 20px; flex-wrap:wrap; font-size:13px; }
.funnel-brief-facts { padding-left:20px; margin:16px 0 8px; }
.funnel-brief-facts li { margin:6px 0; overflow-wrap:anywhere; }
.funnel-brief-current { border-top:1px solid var(--line); padding-top:12px; }
.funnel-brief-actions { display:flex; align-items:center; flex-wrap:wrap; gap:10px; }
.funnel-brief-actions [data-funnel-reject], .funnel-brief-actions [data-funnel-skip] { color:var(--urgent); }
.funnel-brief-actions a { font-size:13px; margin-left:auto; }
.funnel-dialog button:disabled { cursor:wait; }
.funnel-move-target { margin:14px 0 4px; font-weight:600; }
.funnel-move form { margin-top:8px; }
.funnel-meta > span:first-child { white-space:nowrap; }
.funnel-meta > span + span { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:2px; }
.funnel-finished > summary, .funnel-missed > summary { display:flex; align-items:center; gap:8px; }
