/* Vchat Core 0.66.23 — CRM / Sales Pipeline premium layout.
   Intentionally scoped to the portal CRM panel. Loaded after legacy CSS.
   Does not change buttons, drag/drop listeners, routes, or API behavior. */
.vchat-frontend-app [data-vchat-panel="crm"] {
  --crm-ink:#1e2140;
  --crm-muted:#7c809a;
  --crm-stroke:#e4e6f5;
  --crm-shadow:0 13px 40px rgba(43,47,103,.055);
  min-width:0!important;
  max-width:100%!important;
  box-sizing:border-box!important;
  padding-bottom:46px!important;
}
.vchat-frontend-app [data-vchat-panel="crm"],
.vchat-frontend-app [data-vchat-panel="crm"] *,
.vchat-frontend-app [data-vchat-panel="crm"] *::before,
.vchat-frontend-app [data-vchat-panel="crm"] *::after{box-sizing:border-box!important}
.vchat-frontend-app [data-vchat-panel="crm"] .vchat-page-heading{
  display:flex!important; align-items:flex-end!important; justify-content:space-between!important;
  gap:22px!important; min-width:0!important; margin:0 0 24px!important;
}
.vchat-frontend-app [data-vchat-panel="crm"] .vchat-page-heading>div{min-width:0!important;max-width:720px!important}
.vchat-frontend-app [data-vchat-panel="crm"] .vchat-eyebrow{
  display:inline-flex!important; align-items:center!important; gap:7px!important;
  color:#5b54bc!important; letter-spacing:.105em!important; font-weight:900!important;
  font-size:10px!important; line-height:1.3!important; text-transform:uppercase!important;
  margin-bottom:9px!important;
}
.vchat-frontend-app [data-vchat-panel="crm"] .vchat-page-heading h1{
  font-size:clamp(26px,2.55vw,37px)!important; font-weight:850!important;
  line-height:1.17!important; letter-spacing:-.046em!important; color:#191d38!important;
  margin:0 0 9px!important;
}
.vchat-frontend-app [data-vchat-panel="crm"] .vchat-page-heading p{
  font-size:12px!important; line-height:1.65!important; color:#81849c!important;
  margin:0!important; max-width:690px!important;
}
.vchat-frontend-app [data-vchat-panel="crm"] #vchat-add-conversation-pipeline{
  flex:0 0 auto!important; min-height:46px!important; padding:0 20px!important;
  border-radius:13px!important; background:#625bf1!important;color:#fff!important;
  box-shadow:0 10px 22px rgba(100,90,235,.17)!important;
  font-size:11px!important;font-weight:800!important;white-space:nowrap!important;
}
.vchat-frontend-app [data-vchat-panel="crm"] #vchat-add-conversation-pipeline:hover{background:#5047db!important}
/* Search and selectors share an intentional 4-track grid. */
.vchat-frontend-app [data-vchat-panel="crm"] .vchat-crm-toolbar{
  display:grid!important;grid-template-columns:minmax(230px,1.55fr) minmax(155px,.8fr) minmax(150px,.72fr) minmax(156px,.55fr)!important;
  align-items:stretch!important;gap:12px!important;min-width:0!important;max-width:100%!important;
  margin:0 0 12px!important;padding:15px!important;
  background:#fff!important;border:1px solid var(--crm-stroke)!important;
  border-radius:21px!important;box-shadow:var(--crm-shadow)!important;
}
.vchat-frontend-app [data-vchat-panel="crm"] .vchat-crm-toolbar>*{min-width:0!important;max-width:100%!important;margin:0!important}
.vchat-frontend-app [data-vchat-panel="crm"] .vchat-crm-toolbar .vchat-search{
  position:relative!important;display:flex!important;align-items:center!important;
  gap:9px!important; width:100%!important;min-height:52px!important;
  padding:0 13px!important;border:1px solid #dfe2f1!important;
  border-radius:14px!important;background:#fafbff!important;
  box-shadow:none!important;
}
.vchat-frontend-app [data-vchat-panel="crm"] .vchat-crm-toolbar .vchat-search>span{
  flex:0 0 20px!important;display:grid!important;place-items:center!important;
  font-size:20px!important;line-height:1!important;color:#655bee!important;
}
.vchat-frontend-app [data-vchat-panel="crm"] #vchat-deal-search{
  appearance:none!important;display:block!important;width:100%!important;min-width:0!important;
  height:48px!important;max-width:none!important;margin:0!important;padding:0!important;
  border:0!important;outline:0!important;border-radius:0!important;background:transparent!important;
  box-shadow:none!important;color:#232844!important;font-size:12px!important;font-weight:600!important;
}
.vchat-frontend-app [data-vchat-panel="crm"] #vchat-deal-search::placeholder{color:#a0a4bd!important;opacity:1!important}
.vchat-frontend-app [data-vchat-panel="crm"] .vchat-crm-filter{
  display:flex!important;flex-direction:column!important;justify-content:center!important;
  gap:3px!important;min-width:0!important;padding:6px 10px 6px 13px!important;
  border:1px solid #e2e5f3!important;border-radius:14px!important;background:#fff!important;
}
.vchat-frontend-app [data-vchat-panel="crm"] .vchat-crm-filter>small{
  display:block!important;margin:0!important;font-size:9px!important;letter-spacing:.035em!important;
  color:#9196ad!important;font-weight:800!important;line-height:1.3!important;
}
.vchat-frontend-app [data-vchat-panel="crm"] .vchat-crm-filter select{
  display:block!important;width:100%!important;max-width:100%!important;min-width:0!important;
  min-height:22px!important;height:auto!important;padding:1px 20px 1px 0!important;
  border:0!important;border-radius:0!important;background-color:transparent!important;
  box-shadow:none!important;font-size:11px!important;line-height:1.6!important;
  color:#303555!important;font-weight:800!important;
}
.vchat-frontend-app [data-vchat-panel="crm"] .vchat-crm-total{
  display:flex!important;flex-direction:column!important;align-items:flex-end!important;
  justify-content:center!important;gap:3px!important;padding:6px 14px!important;
  border-radius:14px!important;background:#f2f0ff!important;text-align:right!important;
}
.vchat-frontend-app [data-vchat-panel="crm"] .vchat-crm-total small{font-size:9px!important;color:#7270a3!important;font-weight:750!important}
.vchat-frontend-app [data-vchat-panel="crm"] #vchat-pipeline-total{
  font-size:19px!important;font-weight:900!important;letter-spacing:-.04em!important;
  color:#4840b5!important;line-height:1.25!important;overflow-wrap:anywhere!important;
}
/* Turn the isolated old summary pills into coherent KPIs. */
.vchat-frontend-app [data-vchat-panel="crm"] .vchat-pipeline-summary{
  display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:11px!important;margin:0 0 25px!important;align-items:stretch!important;
}
.vchat-frontend-app [data-vchat-panel="crm"] .vchat-pipeline-summary span{
  display:flex!important;flex-direction:row!important;align-items:center!important;
  justify-content:flex-start!important;gap:10px!important;min-width:0!important;
  min-height:57px!important;padding:11px 15px!important;border:1px solid var(--crm-stroke)!important;
  border-radius:15px!important;background:#fff!important;
  box-shadow:0 5px 20px rgba(28,31,71,.03)!important;color:#8488a0!important;
  font-size:11px!important;font-weight:650!important;
}
.vchat-frontend-app [data-vchat-panel="crm"] .vchat-pipeline-summary b{
  display:block!important;flex:0 0 auto!important;color:#252443!important;
  font-size:22px!important;font-weight:850!important;letter-spacing:-.04em!important;
}
/* One navigable timeline, visibly distinct from the board columns. */
.vchat-frontend-app [data-vchat-panel="crm"] .vchat-crm-stagebar{
  min-width:0!important;max-width:100%!important;margin:0 0 20px!important;
  padding:18px 18px 17px!important;border:1px solid #e4e5f5!important;
  background:linear-gradient(135deg,#fff 0%,#f7f7ff 100%)!important;
  border-radius:20px!important;box-shadow:var(--crm-shadow)!important;
}
.vchat-frontend-app [data-vchat-panel="crm"] .vchat-crm-stagebar-top,
.vchat-frontend-app [data-vchat-panel="crm"] .vchat-crm-board-heading{
  display:flex!important;align-items:center!important;justify-content:space-between!important;
  gap:14px!important;margin:0 0 15px!important;min-width:0!important;
}
.vchat-frontend-app [data-vchat-panel="crm"] .vchat-crm-stagebar-top>div,
.vchat-frontend-app [data-vchat-panel="crm"] .vchat-crm-board-heading>div{display:flex!important;flex-direction:column!important;gap:3px!important;min-width:0!important}
.vchat-frontend-app [data-vchat-panel="crm"] .vchat-crm-stagebar-top>div>span,
.vchat-frontend-app [data-vchat-panel="crm"] .vchat-crm-board-heading>div>span{
  font-size:9px!important;font-weight:900!important;letter-spacing:.1em!important;color:#7676b1!important;
}
.vchat-frontend-app [data-vchat-panel="crm"] .vchat-crm-stagebar-top strong,
.vchat-frontend-app [data-vchat-panel="crm"] .vchat-crm-board-heading strong{
  color:var(--crm-ink)!important;font-size:16px!important;font-weight:900!important;line-height:1.3!important;
}
.vchat-frontend-app [data-vchat-panel="crm"] .vchat-crm-stagebar-top>small{color:#9294ab!important;font-size:10px!important}
.vchat-frontend-app [data-vchat-panel="crm"] .vchat-pipeline-stage-legend{
  display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;
  align-items:stretch!important;gap:7px!important;min-width:0!important;
  overflow:visible!important; margin:0!important;padding:0!important;
}
.vchat-frontend-app [data-vchat-panel="crm"] .vchat-pipeline-stage-legend button{
  position:relative!important;display:flex!important;align-items:center!important;justify-content:flex-start!important;
  gap:8px!important;min-width:0!important;width:100%!important;min-height:57px!important;
  padding:10px 12px!important;border-radius:12px!important;border:1px solid #e4e5f1!important;
  background:#fff!important;text-align:left!important;box-shadow:none!important;
  cursor:pointer!important;transition:border-color .15s,transform .15s!important;
}
.vchat-frontend-app [data-vchat-panel="crm"] .vchat-pipeline-stage-legend button:hover{
  border-color:var(--legend-color)!important;transform:translateY(-2px)!important;
}
.vchat-frontend-app [data-vchat-panel="crm"] .vchat-pipeline-stage-legend button>i{
  flex:0 0 5px!important;width:5px!important;height:28px!important;min-height:28px!important;
  border-radius:6px!important;margin:0!important;
}
.vchat-frontend-app [data-vchat-panel="crm"] .vchat-pipeline-stage-legend button>span{flex:1 1 auto!important;min-width:0!important;padding-right:14px!important}
.vchat-frontend-app [data-vchat-panel="crm"] .vchat-pipeline-stage-legend button b{font-size:10px!important;font-weight:850!important;line-height:1.45!important}
.vchat-frontend-app [data-vchat-panel="crm"] .vchat-pipeline-stage-legend button small{font-size:8px!important;margin-top:2px!important;line-height:1.4!important}
.vchat-frontend-app [data-vchat-panel="crm"] .vchat-pipeline-stage-legend button:after{
  content:attr(data-visible-count)!important;position:absolute!important;right:8px!important;top:9px!important;
  min-width:19px!important;height:19px!important;padding:0 4px!important;border-radius:999px!important;
  background:#f2f1fb!important;color:var(--legend-color)!important;display:grid!important;place-items:center!important;
  font-style:normal!important;font-size:10px!important;font-weight:900!important;
}
.vchat-frontend-app [data-vchat-panel="crm"] .vchat-pipeline-stage-legend button.is-active{
  border-color:var(--legend-color)!important;box-shadow:0 0 0 3px color-mix(in srgb,var(--legend-color) 12%,transparent)!important;
}
/* The board itself is ONE ROW with horizontal scrolling; prevents stages 5/6 falling below. */
.vchat-frontend-app [data-vchat-panel="crm"] .vchat-crm-board-shell{
  min-width:0!important;max-width:100%!important;padding:18px 16px 12px!important;
  border-radius:23px!important;background:#fff!important;border:1px solid var(--crm-stroke)!important;
  box-shadow:var(--crm-shadow)!important;
}
.vchat-frontend-app [data-vchat-panel="crm"] .vchat-crm-board-heading{margin:0 3px 16px!important}
.vchat-frontend-app [data-vchat-panel="crm"] .vchat-crm-board-controls{display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;justify-content:flex-end!important;align-items:center!important;gap:7px!important;min-width:0!important}
.vchat-frontend-app [data-vchat-panel="crm"] .vchat-crm-board-controls>span{font-size:10px!important;color:#8e92ac!important;margin-right:4px!important}
.vchat-frontend-app [data-vchat-panel="crm"] .vchat-crm-board-arrow{
  flex:0 0 34px!important;display:grid!important;place-items:center!important;
  width:34px!important;min-width:34px!important;height:34px!important;padding:0!important;
  border:1px solid #e0e3f3!important;border-radius:11px!important;
  background:#f8f8ff!important;color:#6256ca!important;font-size:17px!important;
  box-shadow:none!important;cursor:pointer!important;
}
.vchat-frontend-app [data-vchat-panel="crm"] .vchat-crm-board-arrow:hover{background:#edeaff!important;color:#423ab4!important}
.vchat-frontend-app [data-vchat-panel="crm"] #vchat-kanban{
  display:grid!important;grid-auto-flow:column!important;
  grid-template-columns:none!important;grid-auto-columns:clamp(270px,30%,336px)!important;
  gap:15px!important;align-items:start!important;
  width:100%!important;max-width:100%!important;min-width:0!important;
  min-height:0!important;overflow-x:auto!important;overflow-y:hidden!important;
  overscroll-behavior-inline:contain!important;scroll-snap-type:x proximity!important;
  scroll-padding-inline:4px!important;scrollbar-width:thin!important;
  scrollbar-color:#c3bef4 #f3f2fa!important;
  padding:5px 4px 19px!important;margin:0!important;
}
.vchat-frontend-app [data-vchat-panel="crm"] #vchat-kanban::-webkit-scrollbar{height:9px}
.vchat-frontend-app [data-vchat-panel="crm"] #vchat-kanban::-webkit-scrollbar-thumb{background:#c3bef4;border-radius:20px}
.vchat-frontend-app [data-vchat-panel="crm"] #vchat-kanban::-webkit-scrollbar-track{background:#f3f2fa;border-radius:20px}
.vchat-frontend-app [data-vchat-panel="crm"] #vchat-kanban>.vchat-kanban-column{
  min-width:0!important;max-width:none!important;width:100%!important;min-height:390px!important;
  height:auto!important;padding:0!important;margin:0!important;
  border:1px solid color-mix(in srgb,var(--stage-color) 20%,#e8e9f5)!important;
  border-radius:18px!important;overflow:hidden!important;scroll-snap-align:start!important;
  background:linear-gradient(180deg,var(--stage-soft) 0,#f9faff 125px,#fafbff 100%)!important;
  box-shadow:none!important;
}
.vchat-frontend-app [data-vchat-panel="crm"] #vchat-kanban>.vchat-kanban-column::before{height:4px!important;z-index:1!important}
.vchat-frontend-app [data-vchat-panel="crm"] #vchat-kanban>.vchat-kanban-column>header{
  position:relative!important;display:flex!important;align-items:center!important;justify-content:space-between!important;
  gap:8px!important;min-width:0!important;min-height:91px!important;
  margin:0!important;padding:17px 16px 13px!important;
  border-bottom:1px solid color-mix(in srgb,var(--stage-color) 12%,#e4e7f3)!important;
  background:linear-gradient(180deg,var(--stage-soft) 0%,rgba(255,255,255,.76) 100%)!important;
}
.vchat-frontend-app [data-vchat-panel="crm"] #vchat-kanban>.vchat-kanban-column>header>div{min-width:0!important;display:flex!important;align-items:center!important;gap:10px!important}
.vchat-frontend-app [data-vchat-panel="crm"] #vchat-kanban>.vchat-kanban-column>header>div>span{
  flex:0 0 10px!important;width:10px!important;height:10px!important;
  border-radius:50%!important;background:var(--stage-color)!important;
  box-shadow:0 0 0 5px color-mix(in srgb,var(--stage-color) 12%,transparent)!important;
}
.vchat-frontend-app [data-vchat-panel="crm"] #vchat-kanban>.vchat-kanban-column>header strong{
  display:block!important;font-size:15px!important;font-weight:900!important;line-height:1.35!important;color:#212443!important;
}
.vchat-frontend-app [data-vchat-panel="crm"] #vchat-kanban>.vchat-kanban-column>header strong small{
  display:block!important;color:#8b8ba4!important;font-weight:600!important;font-size:10px!important;line-height:1.5!important;
}
.vchat-frontend-app [data-vchat-panel="crm"] #vchat-kanban>.vchat-kanban-column>header em{
  flex:0 0 auto!important;display:grid!important;place-items:center!important;
  min-width:30px!important;height:30px!important;padding:0 6px!important;
  border-radius:10px!important;font-size:12px!important;font-weight:900!important;
  background:var(--stage-color)!important;color:#fff!important;
}
.vchat-frontend-app [data-vchat-panel="crm"] #vchat-kanban .vchat-kanban-dropzone{
  display:flex!important;flex-direction:column!important;gap:10px!important;
  align-items:stretch!important;justify-content:flex-start!important;
  width:100%!important;min-width:0!important;min-height:292px!important;
  padding:12px!important;margin:0!important;overflow:visible!important;
}
.vchat-frontend-app [data-vchat-panel="crm"] #vchat-kanban .vchat-kanban-dropzone.is-over{
  outline:2px dashed var(--stage-color)!important;outline-offset:-6px!important;
  background:color-mix(in srgb,var(--stage-soft) 60%,#fff)!important;
}
.vchat-frontend-app [data-vchat-panel="crm"] #vchat-kanban .vchat-kanban-empty{
  display:flex!important;align-items:center!important;justify-content:center!important;
  width:100%!important;min-width:0!important;min-height:126px!important;
  padding:16px!important;margin:0!important;border:1px dashed color-mix(in srgb,var(--stage-color) 24%,#dce1f2)!important;
  border-radius:14px!important;background:rgba(255,255,255,.72)!important;
  text-align:center!important;color:#9a9bb0!important;font-size:11px!important;line-height:1.5!important;
}
.vchat-frontend-app [data-vchat-panel="crm"] #vchat-kanban .vchat-kanban-empty[hidden]{display:none!important}
.vchat-frontend-app [data-vchat-panel="crm"] #vchat-kanban .vchat-pipeline-conversation-card{
  position:relative!important;display:block!important;align-self:stretch!important;
  flex:0 0 auto!important;width:100%!important;max-width:100%!important;min-width:0!important;
  height:auto!important;min-height:0!important;padding:13px!important;margin:0!important;
  border:1px solid #e3e6f1!important;border-left:3px solid var(--stage-color)!important;
  border-top:1px solid #e3e6f1!important;border-radius:14px!important;
  background:#fff!important;overflow:hidden!important;
  box-shadow:0 5px 18px rgba(40,44,89,.055)!important;
  transition:transform .15s,box-shadow .15s!important;
}
.vchat-frontend-app [data-vchat-panel="crm"] #vchat-kanban .vchat-pipeline-conversation-card:hover{
  transform:translateY(-2px)!important;box-shadow:0 11px 23px rgba(40,44,89,.1)!important;
}
.vchat-frontend-app [data-vchat-panel="crm"] #vchat-kanban .vchat-pipeline-conversation-card[hidden]{display:none!important}
.vchat-frontend-app [data-vchat-panel="crm"] #vchat-kanban .vchat-pipeline-card-head{
  display:flex!important;align-items:center!important;justify-content:space-between!important;
  gap:10px!important;min-width:0!important;margin:0 0 12px!important;
}
.vchat-frontend-app [data-vchat-panel="crm"] #vchat-kanban .vchat-pipeline-stage-pill{
  display:inline-flex!important;align-items:center!important;gap:6px!important;
  width:auto!important;min-width:0!important;max-width:calc(100% - 44px)!important;
  padding:5px 9px!important;border-radius:30px!important;
  background:var(--stage-soft)!important;color:var(--stage-color)!important;
  overflow:hidden!important;white-space:nowrap!important;text-overflow:ellipsis!important;
  font-size:9px!important;font-weight:850!important;
}
.vchat-frontend-app [data-vchat-panel="crm"] #vchat-kanban .vchat-pipeline-card-head>button{
  display:grid!important;place-items:center!important;
  flex:0 0 31px!important;width:31px!important;min-width:31px!important;height:31px!important;
  padding:0!important;margin:0!important;border:1px solid #e0e2f2!important;
  border-radius:10px!important;background:#f9faff!important;color:#6057e4!important;
  font-size:16px!important;line-height:1!important;
}
.vchat-frontend-app [data-vchat-panel="crm"] #vchat-kanban .vchat-pipeline-card-identity{
  display:flex!important;align-items:center!important;justify-content:flex-start!important;
  width:100%!important;min-width:0!important;gap:10px!important;
}
.vchat-frontend-app [data-vchat-panel="crm"] #vchat-kanban .vchat-pipeline-card-identity .vchat-deal-avatar{
  display:grid!important;place-items:center!important;flex:0 0 38px!important;
  width:38px!important;height:38px!important;border-radius:12px!important;
  font-size:10px!important;background:var(--stage-soft)!important;color:var(--stage-color)!important;
}
.vchat-frontend-app [data-vchat-panel="crm"] #vchat-kanban .vchat-pipeline-card-identity>div{flex:1 1 auto!important;min-width:0!important}
.vchat-frontend-app [data-vchat-panel="crm"] #vchat-kanban .vchat-pipeline-card-identity h3{
  margin:0 0 3px!important;max-width:100%!important;overflow:hidden!important;
  text-overflow:ellipsis!important;white-space:nowrap!important;
  font-size:13px!important;line-height:1.4!important;font-weight:850!important;color:#252642!important;
}
.vchat-frontend-app [data-vchat-panel="crm"] #vchat-kanban .vchat-pipeline-card-identity small{
  display:block!important;overflow:hidden!important;text-overflow:ellipsis!important;
  white-space:nowrap!important;font-size:10px!important;color:#8c90a9!important;
}
.vchat-frontend-app [data-vchat-panel="crm"] #vchat-kanban .vchat-pipeline-card-context{
  display:-webkit-box!important;overflow:hidden!important;-webkit-box-orient:vertical!important;
  -webkit-line-clamp:2!important;width:100%!important;min-width:0!important;
  margin:11px 0!important;padding:0!important;color:#81859d!important;
  font-size:10px!important;line-height:1.5!important;overflow-wrap:anywhere!important;
}
.vchat-frontend-app [data-vchat-panel="crm"] #vchat-kanban .vchat-pipeline-change{
  display:block!important;min-width:0!important;max-width:100%!important;
  padding:9px 10px!important;margin:10px 0!important;
  border:1px solid #e6e3f6!important;border-radius:11px!important;
  background:#f8f7ff!important;
}
.vchat-frontend-app [data-vchat-panel="crm"] #vchat-kanban .vchat-pipeline-change span,
.vchat-frontend-app [data-vchat-panel="crm"] #vchat-kanban .vchat-pipeline-change small{
  display:block!important;width:100%!important;min-width:0!important;
  margin:0!important;overflow:hidden!important;text-overflow:ellipsis!important;
  white-space:nowrap!important;font-size:9px!important;line-height:1.5!important;
}
.vchat-frontend-app [data-vchat-panel="crm"] #vchat-kanban .vchat-pipeline-change span{color:#5d52bd!important;font-weight:850!important}
.vchat-frontend-app [data-vchat-panel="crm"] #vchat-kanban .vchat-pipeline-change small{color:#8583a1!important;font-size:9px!important}
.vchat-frontend-app [data-vchat-panel="crm"] #vchat-kanban .vchat-pipeline-card-bottom{
  display:grid!important;grid-template-columns:minmax(0,1fr) auto auto!important;
  width:100%!important;min-width:0!important;align-items:center!important;
  gap:6px!important;margin-top:12px!important;padding:12px 0 0!important;
  border-top:1px solid #ececf4!important;
}
.vchat-frontend-app [data-vchat-panel="crm"] #vchat-kanban .vchat-pipeline-card-bottom span{
  min-width:0!important;max-width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important;
  white-space:nowrap!important;font-size:9px!important;color:#8c90a8!important;
}
.vchat-frontend-app [data-vchat-panel="crm"] #vchat-kanban .vchat-pipeline-card-bottom strong{
  font-size:11px!important;line-height:1.5!important;font-weight:900!important;color:#292c4b!important;
}
.vchat-frontend-app [data-vchat-panel="crm"] #vchat-kanban .vchat-pipeline-card-bottom em{
  padding:4px 6px!important;border-radius:8px!important;background:var(--stage-soft)!important;
  color:var(--stage-color)!important;font-size:9px!important;font-weight:900!important;font-style:normal!important;
}
.vchat-frontend-app [data-vchat-panel="crm"] .vchat-crm-board-footnote{
  margin:12px 3px 2px!important;color:#9a9bb0!important;font-size:10px!important;
  line-height:1.6!important;
}
@media(max-width:1160px){
  .vchat-frontend-app [data-vchat-panel="crm"] .vchat-crm-toolbar{grid-template-columns:minmax(0,1fr) minmax(145px,.6fr) minmax(145px,.6fr)!important}
  .vchat-frontend-app [data-vchat-panel="crm"] .vchat-crm-total{grid-column:1/-1!important;align-items:flex-start!important;text-align:left!important;padding:10px 14px!important}
  .vchat-frontend-app [data-vchat-panel="crm"] .vchat-pipeline-stage-legend{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}
@media(max-width:760px){
  .vchat-frontend-app [data-vchat-panel="crm"]{padding-bottom:30px!important}
  .vchat-frontend-app [data-vchat-panel="crm"] .vchat-page-heading{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:13px!important;margin-bottom:17px!important}
  .vchat-frontend-app [data-vchat-panel="crm"] #vchat-add-conversation-pipeline{width:100%!important;min-height:46px!important}
  .vchat-frontend-app [data-vchat-panel="crm"] .vchat-crm-toolbar{grid-template-columns:repeat(2,minmax(0,1fr))!important;padding:11px!important;gap:9px!important}
  .vchat-frontend-app [data-vchat-panel="crm"] .vchat-crm-toolbar .vchat-search{grid-column:1/-1!important;min-height:48px!important}
  .vchat-frontend-app [data-vchat-panel="crm"] .vchat-crm-filter{grid-column:auto!important;width:100%!important}
  .vchat-frontend-app [data-vchat-panel="crm"] .vchat-crm-total{grid-column:1/-1!important}
  .vchat-frontend-app [data-vchat-panel="crm"] .vchat-pipeline-summary{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:7px!important;margin-bottom:16px!important}
  .vchat-frontend-app [data-vchat-panel="crm"] .vchat-pipeline-summary span{display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:3px!important;padding:10px!important;min-height:74px!important;font-size:9px!important}
  .vchat-frontend-app [data-vchat-panel="crm"] .vchat-pipeline-summary b{font-size:19px!important}
  .vchat-frontend-app [data-vchat-panel="crm"] .vchat-crm-stagebar{padding:13px!important;margin-bottom:14px!important}
  .vchat-frontend-app [data-vchat-panel="crm"] .vchat-crm-stagebar-top>small{display:none!important}
  .vchat-frontend-app [data-vchat-panel="crm"] .vchat-pipeline-stage-legend{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important;overflow:visible!important;margin:0!important;padding:0!important}
  .vchat-frontend-app [data-vchat-panel="crm"] .vchat-pipeline-stage-legend button{flex:unset!important;width:100%!important;min-width:0!important;min-height:50px!important;padding:8px!important}
  .vchat-frontend-app [data-vchat-panel="crm"] .vchat-crm-board-shell{padding:13px 11px!important}
  .vchat-frontend-app [data-vchat-panel="crm"] .vchat-crm-board-heading{align-items:flex-start!important;gap:8px!important}
  .vchat-frontend-app [data-vchat-panel="crm"] .vchat-crm-board-controls>span{display:none!important}
  /* Stacked stage cards make mobile browsing and native touch interactions predictable. */
  .vchat-frontend-app [data-vchat-panel="crm"] #vchat-kanban{
    display:flex!important;flex-direction:column!important;align-items:stretch!important;
    grid-auto-flow:initial!important;gap:12px!important;
    overflow:visible!important;padding:3px 1px 8px!important;scroll-snap-type:none!important;
  }
  .vchat-frontend-app [data-vchat-panel="crm"] #vchat-kanban>.vchat-kanban-column{
    flex:0 0 auto!important;width:100%!important;min-width:0!important;min-height:0!important;
  }
  .vchat-frontend-app [data-vchat-panel="crm"] #vchat-kanban>.vchat-kanban-column>header{min-height:73px!important;padding:13px 15px!important}
  .vchat-frontend-app [data-vchat-panel="crm"] #vchat-kanban .vchat-kanban-dropzone{min-height:70px!important;padding:10px!important}
  .vchat-frontend-app [data-vchat-panel="crm"] #vchat-kanban .vchat-kanban-empty{min-height:65px!important}
  .vchat-frontend-app [data-vchat-panel="crm"] #vchat-kanban .vchat-pipeline-mobile-stage{display:block!important;width:100%!important;min-width:0!important;margin-top:12px!important}
  .vchat-frontend-app [data-vchat-panel="crm"] #vchat-kanban .vchat-pipeline-mobile-stage select{width:100%!important;max-width:100%!important;min-height:43px!important}
}
@media(max-width:385px){
  .vchat-frontend-app [data-vchat-panel="crm"] .vchat-crm-toolbar{grid-template-columns:minmax(0,1fr)!important}
  .vchat-frontend-app [data-vchat-panel="crm"] .vchat-crm-filter{grid-column:1!important}
  .vchat-frontend-app [data-vchat-panel="crm"] .vchat-pipeline-summary span{font-size:8px!important}
  .vchat-frontend-app [data-vchat-panel="crm"] .vchat-crm-stagebar-top strong{font-size:14px!important}
}
/* Final, narrowly scoped correction: the board navigation is one horizontal row. */
.vchat-frontend-app [data-vchat-panel="crm"] .vchat-crm-board-heading > .vchat-crm-board-controls{
  display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;
  align-items:center!important;justify-content:flex-end!important;
  gap:7px!important;width:auto!important;
}
