/* Feature page: B2B database (prefix kf-b2b-). Loaded after wa.css. */

/* ---------- Hero: prospect search app ---------- */
.kf-b2b-hero { position: relative; max-width: 540px; margin: 0 auto; padding: 16px 0 56px; }
.kf-b2b-app { position: relative; z-index: 1; overflow: hidden; border: 1px solid var(--ks-line); border-radius: 22px; background: #fff; box-shadow: 0 40px 80px -30px rgba(7, 94, 84, .45), 0 12px 30px rgba(11, 31, 26, .08); }
.kf-b2b-app .kh-builder-bar em { background: #dcfce7; color: #15803d; font-variant-numeric: tabular-nums; }
.kf-b2b-app-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 16px; }
.kf-b2b-query { display: flex; align-items: center; gap: 10px; min-width: 0; height: 44px; padding: 0 14px; border: 1.5px solid var(--ks-primary); border-radius: 12px; box-shadow: 0 0 0 4px rgba(18, 140, 126, .1); color: var(--ks-ink); font-size: 14px; }
.kf-b2b-query i { flex: none; font-size: 19px; color: var(--ks-primary); }
.kf-b2b-query span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kf-b2b-query small { margin-right: 8px; color: var(--ks-muted); font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }

.kf-b2b-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.kf-b2b-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 4px 12px 4px 9px; border: 1.5px solid var(--ks-line); border-radius: 999px; background: #fff; color: var(--ks-ink); font: 600 13px/1.2 var(--ks-font); cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s, color .15s; }
.kf-b2b-chip i { font-size: 16px; color: var(--ks-primary); }
.kf-b2b-chip span { color: var(--ks-muted); font-weight: 500; }
.kf-b2b-chip:hover { border-color: #9fdcc4; }
.kf-b2b-chip[aria-pressed="true"] { border-color: var(--kh-wa-teal); background: var(--ks-primary-50); color: var(--ks-primary-700); box-shadow: 0 0 0 3px rgba(18, 140, 126, .1); }
.kf-b2b-chip[aria-pressed="true"] span { color: var(--kh-wa-teal); }

.kf-b2b-results-head { display: flex; justify-content: space-between; gap: 12px; padding: 0 4px; color: var(--ks-muted); font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.kf-b2b-results { display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: 6px; height: 244px; margin: 0; padding: 0 2px 0 0; overflow-y: auto; list-style: none; scrollbar-width: thin; }
.kf-b2b-results li:not([hidden]) { animation: kf-b2b-in .35s ease both; }
.kf-b2b-row { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 8px 10px; border: 1px solid var(--ks-line); border-radius: 12px; background: #fff; cursor: pointer; transition: border-color .2s, background .2s; }
.kf-b2b-row:hover { border-color: #a7dcc8; }
.kf-b2b-check { flex: none; width: 18px; height: 18px; margin: 0; accent-color: var(--kh-wa-teal); cursor: pointer; }
.kf-b2b-results li.is-checked .kf-b2b-row { border-color: var(--kh-wa-teal); background: #f1faf6; }
.kf-b2b-results li.is-imported .kf-b2b-row { cursor: default; }
.kf-b2b-avatar { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, #dff5ea, #c7eedb); color: var(--kh-wa-dark); font-size: 12px; font-weight: 800; letter-spacing: .02em; }
.kf-b2b-avatar.is-lg { width: 52px; height: 52px; font-size: 17px; }
.kf-b2b-avatar.is-done { background: linear-gradient(135deg, var(--kh-wa-dark), var(--kh-wa-teal)); color: #fff; }
.kf-b2b-who { flex: 1; min-width: 0; line-height: 1.3; }
.kf-b2b-who strong, .kf-b2b-who small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kf-b2b-who strong { color: var(--ks-ink); font-size: 13.5px; }
.kf-b2b-who small { color: var(--ks-muted); font-size: 12px; }
.kf-b2b-lock { flex: none; display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 999px; background: #f1f5f4; color: var(--ks-muted); font-size: 11.5px; font-weight: 600; white-space: nowrap; transition: background .3s, color .3s; }
.kf-b2b-lock i { font-size: 14px; }
.kf-b2b-lock em { font-style: normal; }
.kf-b2b-results li.is-imported .kf-b2b-lock { background: #dcfce7; color: #15803d; }

.kf-b2b-importbar { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 10px 10px 10px 12px; border-radius: 14px; background: var(--ks-soft); }
.kf-b2b-importbar-icon { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: #fff; color: var(--ks-primary); font-size: 18px; }
.kf-b2b-importbar-text { flex: 1; min-width: 0; line-height: 1.3; }
.kf-b2b-importbar-text strong, .kf-b2b-importbar-text small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kf-b2b-importbar-text strong { color: var(--ks-ink); font-size: 13.5px; }
.kf-b2b-importbar-text small { color: var(--ks-muted); font-size: 12px; }
.kf-b2b-import { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border: 0; border-radius: 10px; background: linear-gradient(100deg, var(--kh-wa-dark), var(--kh-wa-teal)); color: #fff; font: 700 13.5px/1 var(--ks-font); white-space: nowrap; cursor: pointer; transition: filter .2s, opacity .2s, background .3s; }
.kf-b2b-import i { font-size: 17px; }
.kf-b2b-import:hover:not(:disabled) { filter: brightness(1.08); }
.kf-b2b-import:disabled { opacity: .45; cursor: not-allowed; }
.kf-b2b-import.is-busy { opacity: .8; cursor: progress; }
.kf-b2b-import.is-done { background: #15803d; }

.kf-b2b-hint { position: absolute; left: 0; right: 0; bottom: 18px; display: flex; align-items: center; justify-content: center; gap: 6px; margin: 0; color: var(--ks-muted); font-size: 13px; font-weight: 600; text-align: center; }
.kf-b2b-hint i { font-size: 17px; color: var(--kh-wa-teal); }
.kf-b2b-float-dup { top: -40px; right: -40px; }
.kf-b2b-float-group { left: -100px; bottom: 10px; animation-delay: -3s; }

@keyframes kf-b2b-in { from { opacity: 0; transform: translateY(6px); } }

/* ---------- Filter builder ---------- */
.kf-b2b-builder { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 32px; align-items: start; padding: 32px; border: 1px solid var(--ks-line); border-radius: 28px; background: linear-gradient(135deg, #f1faf5, #fff 60%); box-shadow: var(--ks-shadow-lg); }
.kf-b2b-builder-controls, .kf-b2b-providers { min-width: 0; }
.kf-b2b-label { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; color: var(--ks-muted); font-size: 12.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.kf-b2b-label i { font-size: 17px; color: var(--ks-primary); }
.kf-b2b-fchips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.kf-b2b-fchip { position: relative; display: flex; align-items: center; gap: 10px; min-width: 0; padding: 11px 38px 11px 11px; border: 1.5px solid var(--ks-line); border-radius: 14px; background: #fff; color: var(--ks-ink); font: inherit; text-align: left; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.kf-b2b-fchip > i { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--ks-primary-50); color: var(--ks-primary); font-size: 18px; transition: background .15s, color .15s; }
.kf-b2b-fchip > span { min-width: 0; line-height: 1.3; }
.kf-b2b-fchip strong { display: block; font-size: 14px; }
.kf-b2b-fchip small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ks-muted); font-size: 12px; }
.kf-b2b-fchip-tick { position: absolute; top: 50%; right: 11px; display: grid; place-items: center; width: 20px; height: 20px; margin-top: -10px; border: 1.5px solid #cbd5d1; border-radius: 6px; color: transparent; font-size: 13px; transition: background .15s, border-color .15s, color .15s; }
.kf-b2b-fchip:hover { border-color: #9fdcc4; }
.kf-b2b-fchip[aria-pressed="true"] { border-color: var(--kh-wa-teal); box-shadow: 0 0 0 4px rgba(18, 140, 126, .1); }
.kf-b2b-fchip[aria-pressed="true"] > i { background: var(--kh-wa-teal); color: #fff; }
.kf-b2b-fchip[aria-pressed="true"] .kf-b2b-fchip-tick { border-color: var(--kh-wa-teal); background: var(--kh-wa-teal); color: #fff; }
.kf-b2b-options { display: grid; gap: 10px; margin-top: 16px; padding: 14px 16px; border: 1px dashed #cfe3da; border-radius: 14px; background: rgba(255, 255, 255, .7); }
.kf-b2b-options p { margin: 0; color: var(--ks-muted); font-size: 13.5px; line-height: 1.5; }
.kf-b2b-options strong { display: block; color: var(--ks-ink); font-size: 13px; }

.kf-b2b-providers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.kf-b2b-pcard { display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 16px; border: 1.5px solid var(--ks-line); border-radius: 18px; background: #fff; transition: border-color .25s, box-shadow .25s, background .25s; }
.kf-b2b-pcard header { display: flex; align-items: center; gap: 10px; min-width: 0; line-height: 1.3; }
.kf-b2b-pcard header > span:last-child { min-width: 0; }
.kf-b2b-pcard header strong { display: block; color: var(--ks-ink); font-size: 15px; }
.kf-b2b-pcard header small { display: block; color: var(--ks-muted); font-size: 12px; }
.kf-b2b-plogo { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: linear-gradient(135deg, var(--kh-wa-dark), var(--kh-wa-teal)); color: #fff; font-size: 19px; }
.kf-b2b-plogo.is-muted { background: #e9edef; color: #54656f; }
.kf-b2b-pfilters { display: flex; flex-wrap: wrap; gap: 5px; margin: 0; padding: 0; list-style: none; }
.kf-b2b-pfilters li { padding: 3px 8px; border: 1px solid var(--ks-line); border-radius: 999px; background: var(--ks-soft); color: var(--ks-text); font-size: 11.5px; font-weight: 600; line-height: 1.4; transition: background .2s, border-color .2s, color .2s, opacity .2s; }
.kf-b2b-pfilters li.is-match { border-color: #bbf7d0; background: #dcfce7; color: #15803d; }
.kf-b2b-pfilters li.is-miss { border-color: #fecdd3; background: #fff1f2; color: #be123c; text-decoration: line-through; }
.kf-b2b-pfilters li.is-none { border-style: dashed; background: transparent; opacity: .5; }
.kf-b2b-verdict { display: flex; align-items: flex-start; gap: 6px; margin: auto 0 0; padding-top: 10px; border-top: 1px dashed var(--ks-line); color: var(--ks-ink); font-size: 13px; font-weight: 600; line-height: 1.4; }
.kf-b2b-verdict i { flex: none; font-size: 17px; }
.kf-b2b-verdict span { min-width: 0; }
.kf-b2b-pcard.is-good { border-color: var(--kh-wa-teal); box-shadow: 0 16px 36px -22px rgba(7, 94, 84, .6); }
.kf-b2b-pcard.is-good .kf-b2b-verdict i { color: #15803d; }
.kf-b2b-pcard.is-partial .kf-b2b-verdict i { color: #b45309; }
.kf-b2b-pcard.is-blocked { background: #fbfcfc; }
.kf-b2b-pcard.is-blocked .kf-b2b-verdict { color: #be123c; }
.kf-b2b-pcard.is-idle .kf-b2b-verdict { color: var(--ks-muted); }
.kf-b2b-legend { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 0; color: var(--ks-muted); font-size: 12.5px; }
.kf-b2b-legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 6px; border: 1px solid #bbf7d0; border-radius: 3px; background: #dcfce7; vertical-align: -1px; }
.kf-b2b-legend .is-miss::before { border-color: #fecdd3; background: #fff1f2; }
.kf-b2b-legend .is-none::before { border: 1px dashed #9fb3ac; background: transparent; }

/* ---------- Prospect before and after import ---------- */
.kf-b2b-profile { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.kf-b2b-profile-copy { min-width: 0; }
.kf-b2b-profile-copy > p { color: var(--ks-muted); font-size: 1.05rem; }
.kf-b2b-profile-copy > p.kf-b2b-picklabel { margin: 26px 0 10px; color: var(--ks-muted); font-size: 12.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.kf-b2b-picker { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin-bottom: 18px; }
.kf-b2b-pick { display: flex; align-items: center; gap: 12px; width: 100%; min-width: 0; padding: 10px 14px 10px 10px; border: 1.5px solid var(--ks-line); border-radius: 14px; background: #fff; color: var(--ks-ink); font: inherit; text-align: left; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.kf-b2b-pick > span:last-child { min-width: 0; line-height: 1.3; }
.kf-b2b-pick strong { display: block; font-size: 14.5px; }
.kf-b2b-pick small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ks-muted); font-size: 12.5px; }
.kf-b2b-pick:hover { border-color: #9fdcc4; }
.kf-b2b-pick[aria-pressed="true"] { border-color: var(--kh-wa-teal); box-shadow: 0 12px 28px -18px rgba(7, 94, 84, .6); }
.kf-b2b-pick[aria-pressed="true"] .kf-b2b-avatar { background: linear-gradient(135deg, var(--kh-wa-dark), var(--kh-wa-teal)); color: #fff; }

.kf-b2b-profile-stage { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; min-width: 0; }
.kf-b2b-card { min-width: 0; min-height: 440px; padding: 24px; border: 1px solid var(--ks-line); border-radius: 24px; background: #fff; box-shadow: 0 30px 70px -30px rgba(7, 94, 84, .4); }
.kf-b2b-face:not([hidden]) { animation: kh-panel-in .4s ease both; }
.kf-b2b-card-head { display: flex; align-items: center; gap: 12px; min-width: 0; margin-bottom: 18px; line-height: 1.3; }
.kf-b2b-card-head > span:nth-child(2) { flex: 1; min-width: 0; }
.kf-b2b-card-head strong { display: block; color: var(--ks-ink); font-size: 1.08rem; }
.kf-b2b-card-head small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ks-muted); font-size: 12.5px; }
.kf-b2b-tag { flex: none; display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; background: #f1f5f4; color: var(--ks-muted); font-size: 12px; font-style: normal; font-weight: 700; white-space: nowrap; }
.kf-b2b-tag.is-done { background: #dcfce7; color: #15803d; }
.kf-b2b-fields { display: grid; margin: 0; }
.kf-b2b-fields div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; padding: 11px 0; border-top: 1px dashed var(--ks-line); }
.kf-b2b-fields dt { color: var(--ks-muted); font-size: 13px; font-weight: 600; }
.kf-b2b-fields dd { display: flex; align-items: center; gap: 6px; min-width: 0; margin: 0; color: var(--ks-ink); font-size: 14px; overflow-wrap: anywhere; }
.kf-b2b-fields dd i { flex: none; font-size: 16px; }
.kf-b2b-fields dd.is-locked { color: var(--ks-muted); }
.kf-b2b-fields dd.is-locked i { color: #94a3b8; }
.kf-b2b-fields dd.is-open i { color: var(--kh-wa-teal); }
.kf-b2b-fields dd.is-muted { color: var(--ks-muted); font-style: italic; }
.kf-b2b-card-note { display: flex; align-items: center; gap: 6px; margin: 14px 0 0; padding: 10px 12px; border-radius: 12px; background: #fffbeb; color: #92400e; font-size: 13px; }
.kf-b2b-card-note i { flex: none; font-size: 16px; }
.kf-b2b-attr-title { margin: 16px 0 8px; color: var(--ks-muted); font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.kf-b2b-attrs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.kf-b2b-attrs li { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; padding: 5px 10px; border-radius: 999px; background: var(--ks-primary-50); color: var(--ks-primary-700); font-size: 12.5px; font-weight: 600; overflow-wrap: anywhere; }
.kf-b2b-attrs i { flex: none; font-size: 15px; }
.kf-b2b-sample-note { margin: 0; color: var(--ks-muted); font-size: 12.5px; text-align: center; }

/* ---------- Search to campaign flow (dark) ---------- */
.kf-b2b-flow { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 40px; align-items: center; }
.kf-b2b-flow-tabs { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.kf-b2b-flow-tab { --tone: var(--kh-wa); position: relative; overflow: hidden; display: flex; align-items: center; gap: 14px; width: 100%; min-width: 0; padding: 14px 16px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 16px; background: rgba(255, 255, 255, .04); color: #fff; font: inherit; text-align: left; cursor: pointer; transition: border-color .2s, background .2s, box-shadow .2s; }
.kf-b2b-flow-tab:hover { border-color: rgba(37, 211, 102, .45); }
.kf-b2b-flow-tab[aria-selected="true"] { border-color: var(--kh-wa); background: rgba(37, 211, 102, .1); box-shadow: 0 18px 40px -20px rgba(37, 211, 102, .55); }
.kf-b2b-flow-icon { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: rgba(255, 255, 255, .08); color: var(--kh-wa); font-size: 21px; transition: background .2s, color .2s; }
.kf-b2b-flow-tab[aria-selected="true"] .kf-b2b-flow-icon { background: var(--kh-wa); color: #0b141a; }
.kf-b2b-flow-text { min-width: 0; line-height: 1.3; }
.kf-b2b-flow-text small { display: block; color: rgba(255, 255, 255, .5); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.kf-b2b-flow-text strong { display: block; color: #fff; font-size: 15px; }
.kf-b2b-flow-text em { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: rgba(255, 255, 255, .62); font-size: 13px; font-style: normal; }
.kf-b2b-flow-stage { display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; }
.kf-b2b-flow-stage > .kh-panel { grid-area: 1 / 1; min-width: 0; }
.kf-b2b-flow-stage > .kh-panel[hidden] { display: block !important; visibility: hidden; }
.kf-b2b-flow + .ks-actions { margin-top: 36px; }

.kf-b2b-win { max-width: 480px; margin: 0 auto; overflow: hidden; border: 1px solid rgba(255, 255, 255, .14); border-radius: 22px; background: #fff; color: var(--ks-text); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6); }
.kf-b2b-win-body { display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: 12px; min-height: 310px; padding: 18px; background: var(--ks-soft); }
.kf-b2b-win-note { margin: 0; color: var(--ks-muted); font-size: 12.5px; }
.kf-b2b-prov { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 12px; border: 1px solid var(--ks-line); border-radius: 14px; background: #fff; }
.kf-b2b-prov.is-on { border-color: #a7dcc8; }
.kf-b2b-prov-text { flex: 1; min-width: 0; line-height: 1.3; }
.kf-b2b-prov-text strong { display: block; color: var(--ks-ink); font-size: 14px; }
.kf-b2b-prov-text small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ks-muted); font-size: 12px; }
.kf-b2b-pill { flex: none; padding: 3px 10px; border-radius: 999px; background: #e9edef; color: #54656f; font-size: 11.5px; font-style: normal; font-weight: 700; white-space: nowrap; }
.kf-b2b-pill.is-green { background: #dcfce7; color: #15803d; }
.kf-b2b-prov-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.kf-b2b-prov-meta span { min-width: 0; padding: 10px 12px; border: 1px solid var(--ks-line); border-radius: 12px; background: #fff; color: var(--ks-ink); font-size: 13px; overflow-wrap: anywhere; }
.kf-b2b-prov-meta small { display: block; color: var(--ks-muted); font-size: 11.5px; font-weight: 600; }
.kf-b2b-prov-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.kf-b2b-prov-actions span { display: inline-flex; align-items: center; gap: 5px; padding: 6px 12px; border: 1px solid var(--ks-line); border-radius: 10px; background: #fff; color: var(--ks-ink); font-size: 12.5px; font-weight: 600; }
.kf-b2b-prov-actions i { font-size: 15px; color: var(--ks-primary); }
.kf-b2b-mini-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.kf-b2b-mini-filters span { max-width: 100%; padding: 4px 10px; border: 1px solid var(--ks-line); border-radius: 999px; background: #fff; color: var(--ks-primary-700); font-size: 12px; font-weight: 600; overflow-wrap: anywhere; }
.kf-b2b-mini-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin: 0; padding: 0; list-style: none; }
.kf-b2b-mini-list li { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 10px 12px; border: 1px solid var(--ks-line); border-radius: 12px; background: #fff; }
.kf-b2b-mini-list li.is-on { border-color: #a7dcc8; }
.kf-b2b-mini-list li > span { flex: 1; min-width: 0; line-height: 1.3; }
.kf-b2b-mini-list strong, .kf-b2b-mini-list small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kf-b2b-mini-list strong { color: var(--ks-ink); font-size: 13.5px; }
.kf-b2b-mini-list small { color: var(--ks-muted); font-size: 12px; }
.kf-b2b-mini-list li > i { flex: none; color: #94a3b8; font-size: 16px; }
.kf-b2b-mini-list b, .kf-b2b-checkline b { flex: none; display: grid; place-items: center; width: 18px; height: 18px; border: 1.5px solid #cbd5d1; border-radius: 5px; color: #fff; font-size: 12px; }
.kf-b2b-mini-list li.is-on b, .kf-b2b-checkline b { border-color: var(--kh-wa-teal); background: var(--kh-wa-teal); }
.kf-b2b-win-btn { justify-self: start; display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 10px; background: var(--ks-primary); color: #fff; font-size: 13px; font-weight: 700; }
.kf-b2b-win-btn i { font-size: 16px; }
.kf-b2b-alert { display: flex; gap: 8px; margin: 0; padding: 10px 12px; border-radius: 12px; background: #eff6ff; color: #1e40af; font-size: 13px; line-height: 1.45; }
.kf-b2b-alert i { flex: none; font-size: 17px; }
.kf-b2b-field { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; min-width: 0; }
.kf-b2b-field small { color: var(--ks-muted); font-size: 12px; font-weight: 600; }
.kf-b2b-field span { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; min-height: 40px; padding: 0 12px; overflow: hidden; border: 1px solid var(--ks-line); border-radius: 10px; background: #fff; color: var(--ks-ink); font-size: 13.5px; white-space: nowrap; }
.kf-b2b-field span i { flex: none; color: var(--ks-muted); font-size: 16px; }
.kf-b2b-field.is-active span { border-color: var(--kh-wa-teal); box-shadow: 0 0 0 3px rgba(18, 140, 126, .1); }
.kf-b2b-checkline { display: flex; align-items: center; gap: 8px; color: var(--ks-ink); font-size: 13.5px; }
.kf-b2b-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.kf-b2b-stats div { min-width: 0; padding: 12px 6px; border: 1px solid var(--ks-line); border-radius: 12px; background: #fff; text-align: center; }
.kf-b2b-stats strong { display: block; color: var(--ks-ink); font-size: 1.35rem; font-weight: 800; line-height: 1.2; font-variant-numeric: tabular-nums; }
.kf-b2b-stats small { display: block; color: var(--ks-muted); font-size: 11.5px; line-height: 1.3; }
.kf-b2b-log { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin: 0; padding: 0; list-style: none; }
.kf-b2b-log li { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 10px 12px; border: 1px solid var(--ks-line); border-radius: 12px; background: #fff; }
.kf-b2b-log li > span { flex: 1; min-width: 0; line-height: 1.3; }
.kf-b2b-log strong, .kf-b2b-log small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kf-b2b-log strong { color: var(--ks-ink); font-size: 13.5px; }
.kf-b2b-log small { color: var(--ks-muted); font-size: 12px; }
.kf-b2b-log em { flex: none; color: var(--ks-ink); font-size: 12.5px; font-style: normal; font-weight: 600; white-space: nowrap; }
.kf-b2b-channels { display: flex; flex-wrap: wrap; gap: 8px; }
.kf-b2b-channels span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1.5px solid var(--ks-primary); border-radius: 999px; background: var(--ks-primary-50); color: var(--ks-primary-700); font-size: 13px; font-weight: 600; }
.kf-b2b-channels i { font-size: 16px; }
.kf-b2b-channels .is-wa i { color: #1faa59; }
.kf-b2b-channels .is-sms i { color: #2563eb; }
.kf-b2b-channels .is-mail i { color: #ea580c; }
.kf-b2b-bubble { justify-self: end; max-width: 92%; }

/* ---------- Providers ---------- */
.kf-b2b-pdl { display: grid; gap: 10px; margin: 0; }
.kf-b2b-pdl div { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 12px; padding-top: 10px; border-top: 1px dashed var(--ks-line); }
.kf-b2b-pdl dt { color: var(--ks-muted); font-size: 13px; font-weight: 600; }
.kf-b2b-pdl dd { margin: 0; color: var(--ks-ink); font-size: 14.5px; }
.kf-b2b-drawer { width: 100%; max-width: 420px; min-width: 0; margin: 0 auto; overflow: hidden; border: 1px solid var(--ks-line); border-radius: 22px; background: #fff; box-shadow: 0 30px 60px -28px rgba(7, 94, 84, .45); }
.kf-b2b-drawer-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--ks-line); line-height: 1.3; }
.kf-b2b-drawer-head > span:last-child { min-width: 0; }
.kf-b2b-drawer-head strong { display: block; color: var(--ks-ink); font-size: 15px; }
.kf-b2b-drawer-head small { display: block; color: var(--ks-muted); font-size: 12.5px; }
.kf-b2b-drawer-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 18px; background: var(--ks-soft); }
.kf-b2b-drawer-title { display: flex; align-items: center; gap: 6px; margin: 4px 0 0; color: var(--ks-muted); font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.kf-b2b-drawer-title i { font-size: 15px; color: var(--ks-primary); }
.kf-b2b-drawer-foot { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; padding: 14px 18px; border-top: 1px solid var(--ks-line); }
.kf-b2b-drawer-btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 10px; background: #e9edef; color: var(--ks-ink); font-size: 13px; font-weight: 700; white-space: nowrap; }
.kf-b2b-drawer-btn.is-primary { background: var(--ks-primary); color: #fff; }
.kf-b2b-drawer-btn i { font-size: 16px; }

/* ---------- FAQ ---------- */
.kf-b2b-faq-head { margin: 96px auto 28px; text-align: center; }
.kf-b2b-faq-head h2 { margin: 0; }

@media (prefers-reduced-motion: reduce) {
    .kf-b2b-results li, .kf-b2b-face { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
    .kf-b2b-float-dup { right: -12px; }
    .kf-b2b-float-group { left: -16px; }
}
@media (max-width: 960px) {
    .kf-b2b-hero { max-width: 560px; width: 100%; }
    .kf-b2b-float-dup { top: 22%; right: auto; left: 0; }
    .kf-b2b-float-group { left: auto; right: 0; bottom: 96px; }
    .kf-b2b-builder { grid-template-columns: minmax(0, 1fr); padding: 24px; }
    .kf-b2b-profile { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    .kf-b2b-card { min-height: 0; }
    .kf-b2b-flow { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .kf-b2b-flow-tabs { display: flex; gap: 8px; margin: 0 -24px; padding: 0 24px 6px; overflow-x: auto; scrollbar-width: none; }
    .kf-b2b-flow-tabs::-webkit-scrollbar { display: none; }
    .kf-b2b-flow-tab { flex: none; width: auto; padding: 10px 14px 10px 10px; gap: 10px; }
    .kf-b2b-flow-icon { width: 34px; height: 34px; border-radius: 10px; font-size: 18px; }
    .kf-b2b-flow-text em { display: none; }
    .kf-b2b-faq-head { margin-top: 72px; }
}
@media (max-width: 640px) {
    .kf-b2b-hero { padding: 4px 0 0; }
    .kf-b2b-float-dup, .kf-b2b-float-group { display: none; }
    .kf-b2b-hint { position: static; margin-top: 14px; font-size: 12.5px; }
    .kf-b2b-app { border-radius: 18px; }
    .kf-b2b-app-body { gap: 10px; padding: 12px; }
    .kf-b2b-query { height: 40px; padding: 0 12px; font-size: 13px; }
    .kf-b2b-query small { display: none; }
    .kf-b2b-chip { min-height: 34px; padding: 4px 10px 4px 8px; font-size: 12.5px; }
    .kf-b2b-chip span { display: none; }
    .kf-b2b-results { height: 232px; }
    .kf-b2b-row { gap: 8px; padding: 8px; }
    .kf-b2b-avatar { width: 30px; height: 30px; font-size: 11px; }
    .kf-b2b-lock { padding: 4px; }
    .kf-b2b-lock em { display: none; }
    .kf-b2b-importbar { padding: 8px 8px 8px 10px; }
    .kf-b2b-importbar-icon { display: none; }
    .kf-b2b-import { height: 36px; padding: 0 12px; }

    .kf-b2b-builder { gap: 24px; padding: 18px; border-radius: 22px; }
    .kf-b2b-fchips, .kf-b2b-providers { grid-template-columns: minmax(0, 1fr); }
    .kf-b2b-card { padding: 18px; border-radius: 20px; }
    .kf-b2b-card-head { flex-wrap: wrap; }
    .kf-b2b-avatar.is-lg { width: 44px; height: 44px; font-size: 15px; }
    .kf-b2b-fields div { grid-template-columns: 88px minmax(0, 1fr); gap: 8px; }
    .kf-b2b-flow-tabs { margin: 0 -18px; padding: 0 18px 6px; }
    .kf-b2b-win { border-radius: 18px; }
    .kf-b2b-win-body { min-height: 0; padding: 14px; }
    .kf-b2b-prov-meta { grid-template-columns: minmax(0, 1fr); }
    .kf-b2b-stats strong { font-size: 1.1rem; }
    .kf-b2b-log li { flex-wrap: wrap; }
    .kf-b2b-log li > span { flex-basis: 100%; }
    .kf-b2b-pdl div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
    .kf-b2b-drawer-body { padding: 14px; }
    .kf-b2b-faq-head { margin-top: 56px; }
}
