/*
 * Contacts feature page (/features/contacts). Loaded after wa.css.
 * Every class is prefixed kf-ct-; behaviour lives in js/features/contacts.js.
 */

[class^="kf-ct-"][hidden]:not(.kh-panel), [class*=" kf-ct-"][hidden]:not(.kh-panel) { display: none !important; }

/* ---------- Shared bits ---------- */
.kf-ct-avatar { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #dff5ea; color: var(--kh-wa-dark); font-size: 13px; font-weight: 700; letter-spacing: .02em; }
.kf-ct-avatar.is-new { background: linear-gradient(135deg, var(--kh-wa), var(--kh-wa-teal)); color: #fff; }

.kf-ct-seg { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--ks-line); border-radius: 14px; background: #fff; box-shadow: var(--ks-shadow); }
.kf-ct-seg button { flex: 1; min-width: 0; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; padding: 0 10px; border: 0; border-radius: 10px; background: none; color: var(--ks-text); font: 600 14px/1 var(--ks-font); white-space: nowrap; cursor: pointer; transition: background .2s, color .2s, box-shadow .2s; }
.kf-ct-seg button i { font-size: 17px; }
.kf-ct-seg button:hover { color: var(--ks-primary); }
.kf-ct-seg button[aria-pressed="true"] { background: var(--ks-primary); color: #fff; box-shadow: 0 8px 18px -8px rgba(7, 94, 84, .6); }

/* ---------- Hero: contacts app ---------- */
.kf-ct-hero { position: relative; padding: 20px 0 40px; }
.kf-ct-app { position: relative; z-index: 1; max-width: 520px; margin: 0 auto; 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 28px rgba(11, 31, 26, .08); }
.kf-ct-app .kh-builder-bar em { font-variant-numeric: tabular-nums; }
.kf-ct-app-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 16px; }

.kf-ct-search { position: relative; display: flex; align-items: center; min-width: 0; }
.kf-ct-search > i { position: absolute; left: 14px; font-size: 18px; color: var(--ks-primary); pointer-events: none; }
.kf-ct-search input { width: 100%; min-width: 0; height: 44px; padding: 0 14px 0 42px; border: 1.5px solid var(--ks-line); border-radius: 12px; background: var(--ks-soft); color: var(--ks-ink); font: 15px/1.2 var(--ks-font); transition: border-color .15s, background .15s, box-shadow .15s; }
.kf-ct-search input::placeholder { color: #8a9a95; }
.kf-ct-search input:focus { outline: none; border-color: var(--ks-primary); background: #fff; box-shadow: 0 0 0 4px rgba(18, 140, 126, .12); }

.kf-ct-filters { display: flex; gap: 6px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.kf-ct-filters::-webkit-scrollbar { display: none; }
.kf-ct-filters button { flex: none; height: 32px; padding: 0 12px; border: 1px solid var(--ks-line); border-radius: 999px; background: #fff; color: var(--ks-text); font: 600 13px/1 var(--ks-font); cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.kf-ct-filters button:hover { border-color: #9fdcc4; }
.kf-ct-filters button[aria-pressed="true"] { border-color: var(--kh-wa-dark); background: var(--kh-wa-dark); color: #fff; }

.kf-ct-rows { display: grid; align-content: start; gap: 2px; min-height: 300px; margin: 0; padding: 0; list-style: none; }
.kf-ct-row { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 7px 10px; border-radius: 12px; transition: background .15s; }
.kf-ct-row:hover { background: var(--ks-soft); }
.kf-ct-row.is-new { background: #effbf4; }
.kf-ct-row:nth-child(3n) .kf-ct-avatar:not(.is-new) { background: #e0ecff; color: #1d4ed8; }
.kf-ct-row:nth-child(3n+1) .kf-ct-avatar:not(.is-new) { background: #fdf0d5; color: #92400e; }
.kf-ct-who { flex: 1; min-width: 0; line-height: 1.3; }
.kf-ct-who strong, .kf-ct-who small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kf-ct-who strong { color: var(--ks-ink); font-size: 14px; }
.kf-ct-who small { color: var(--ks-muted); font-size: 12px; }
.kf-ct-channels { flex: none; display: flex; gap: 3px; }
.kf-ct-channels i { font-size: 17px; }
.kf-ct-channels .is-wa { color: #1faa59; }
.kf-ct-channels .is-sms { color: #2563eb; }
.kf-ct-channels .is-mail { color: #ea580c; }
.kf-ct-attr { flex: none; max-width: 120px; overflow: hidden; padding: 3px 8px; border: 1px dashed #cfe3db; border-radius: 6px; background: #f6faf8; color: var(--ks-muted); font-size: 11.5px; text-overflow: ellipsis; white-space: nowrap; }
.kf-ct-group { flex: none; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.kf-ct-group.is-visits { background: #dcfce7; color: #15803d; }
.kf-ct-group.is-patients { background: #dbeafe; color: #1d4ed8; }
.kf-ct-group.is-students { background: #fef3c7; color: #92400e; }
.kf-ct-empty { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 32px 12px; color: var(--ks-muted); font-size: 14px; text-align: center; }
.kf-ct-empty i { font-size: 20px; color: var(--ks-primary); }

.kf-ct-import { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 8px 12px; padding: 12px 14px; border: 1px solid var(--ks-line); border-radius: 14px; background: var(--ks-soft); }
.kf-ct-import-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: #dff5ea; color: var(--ks-primary); font-size: 20px; }
.kf-ct-import-text { min-width: 0; line-height: 1.3; }
.kf-ct-import-text strong, .kf-ct-import-text small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kf-ct-import-text strong { color: var(--ks-ink); font-size: 13.5px; }
.kf-ct-import-text small { color: var(--ks-muted); font-size: 12px; }
.kf-ct-import em { color: var(--ks-primary); font-size: 13px; font-style: normal; font-weight: 800; font-variant-numeric: tabular-nums; }
.kf-ct-import.is-done em { color: #15803d; }
.kf-ct-import-meter { grid-column: 1 / -1; height: 6px; overflow: hidden; border-radius: 999px; background: #dfeae5; }
.kf-ct-import-meter span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--kh-wa-teal), var(--kh-wa)); }

.kf-ct-float-attr { top: -30px; right: -22px; animation-delay: -2s; }
.kf-ct-float-opt { bottom: 12px; left: -30px; animation-delay: -4s; }

/* ---------- Import simulator ---------- */
.kf-ct-sim { padding: 28px; border: 1px solid var(--ks-line); border-radius: 28px; background: #fff; box-shadow: var(--ks-shadow-lg); }
.kf-ct-stepper { display: flex; gap: 8px; margin: 0 0 28px; padding: 0; list-style: none; }
.kf-ct-stepper li { flex: 1; min-width: 0; }
.kf-ct-stepper button { display: flex; align-items: center; gap: 10px; width: 100%; min-width: 0; padding: 10px 12px; border: 0; border-radius: 14px; background: var(--ks-soft); color: var(--ks-muted); font: 600 14px/1.2 var(--ks-font); text-align: left; cursor: pointer; transition: background .2s, color .2s, box-shadow .2s; }
.kf-ct-stepper button:disabled { cursor: default; }
.kf-ct-stepper button > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kf-ct-stepper-num { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border: 1.5px solid var(--ks-line); border-radius: 50%; background: #fff; font-size: 13px; transition: background .2s, color .2s, border-color .2s; }
.kf-ct-stepper li.is-done button { color: var(--ks-ink); }
.kf-ct-stepper li.is-done button:not(:disabled):hover { background: var(--ks-primary-50); }
.kf-ct-stepper li.is-done .kf-ct-stepper-num { border-color: transparent; background: var(--kh-wa); color: #fff; }
.kf-ct-stepper button[aria-current="step"] { background: var(--ks-primary-50); color: var(--ks-primary-700); box-shadow: inset 0 0 0 1.5px var(--ks-primary); }
.kf-ct-stepper button[aria-current="step"] .kf-ct-stepper-num { border-color: transparent; background: var(--ks-primary); color: #fff; }

.kf-ct-sim-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 36px; align-items: start; }
.kf-ct-sim-main { min-width: 0; }
.kf-ct-pane { min-height: 300px; }
.kf-ct-pane:not([hidden]) { animation: kh-panel-in .4s ease both; }
.kf-ct-pane h3 { margin: 0 0 6px; font-size: 1.35rem; }
.kf-ct-pane h3:focus { outline: none; }
.kf-ct-pane > p { margin: 0 0 20px; color: var(--ks-muted); }

.kf-ct-files { display: grid; gap: 12px; }
.kf-ct-file { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; border: 1.5px solid var(--ks-line); border-radius: 16px; background: #fff; color: inherit; font: inherit; text-align: left; cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s; }
.kf-ct-file:hover { border-color: #9fdcc4; }
.kf-ct-file[aria-pressed="true"] { border-color: var(--ks-primary); background: var(--ks-primary-50); box-shadow: 0 0 0 4px rgba(18, 140, 126, .1); }
.kf-ct-file-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: #dff5ea; color: #107c41; font-size: 26px; }
.kf-ct-file-text { min-width: 0; line-height: 1.35; }
.kf-ct-file-text strong, .kf-ct-file-text small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kf-ct-file-text strong { color: var(--ks-ink); font-size: 15px; }
.kf-ct-file-text small { color: var(--ks-muted); font-size: 13px; }
.kf-ct-file-tick { font-size: 24px; color: var(--ks-line); transition: color .15s; }
.kf-ct-file[aria-pressed="true"] .kf-ct-file-tick { color: var(--kh-wa-teal); }

.kf-ct-maps { display: grid; gap: 10px; }
.kf-ct-map { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.2fr); align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--ks-line); border-radius: 14px; background: var(--ks-soft); }
.kf-ct-map-col { min-width: 0; line-height: 1.3; }
.kf-ct-map-col strong, .kf-ct-map-col small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kf-ct-map-col strong { color: var(--ks-ink); font-size: 14px; }
.kf-ct-map-col small { color: var(--ks-muted); font-size: 12px; }
.kf-ct-map > i { font-size: 16px; color: var(--ks-muted); }
.kf-ct-map select { width: 100%; min-width: 0; height: 40px; padding: 0 32px 0 12px; border: 1px solid var(--ks-line); border-radius: 10px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235d6f69' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 10px center / 14px no-repeat; -webkit-appearance: none; appearance: none; color: var(--ks-ink); font: 500 14px/1.2 var(--ks-font); text-overflow: ellipsis; cursor: pointer; }
.kf-ct-map select:focus { outline: none; border-color: var(--ks-primary); box-shadow: 0 0 0 3px rgba(18, 140, 126, .15); }

.kf-ct-switch { display: flex; align-items: center; gap: 14px; width: 100%; margin-top: 20px; padding: 14px 16px; border: 1px solid var(--ks-line); border-radius: 16px; background: #fff; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.kf-ct-switch:hover { border-color: #9fdcc4; }
.kf-ct-switch > span:last-child { min-width: 0; line-height: 1.35; }
.kf-ct-switch strong { display: block; color: var(--ks-ink); font-size: 14.5px; }
.kf-ct-switch small { display: block; color: var(--ks-muted); font-size: 13px; }
.kf-ct-switch-ui { position: relative; flex: none; width: 44px; height: 26px; border-radius: 999px; background: #cfd8d4; transition: background .2s; }
.kf-ct-switch-ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .2s; }
.kf-ct-switch[aria-pressed="true"] .kf-ct-switch-ui { background: var(--kh-wa-teal); }
.kf-ct-switch[aria-pressed="true"] .kf-ct-switch-ui::after { transform: translateX(18px); }

.kf-ct-progress { height: 12px; margin-top: 8px; overflow: hidden; border-radius: 999px; background: #dfeae5; }
.kf-ct-progress span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--kh-wa-teal), var(--kh-wa)); }
.kf-ct-progress-label { margin: 10px 0 0; color: var(--ks-muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.kf-ct-sim.is-imported [data-kf-ct-done-title]::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 10px; border-radius: 50%; background: var(--kh-wa); vertical-align: 3px; box-shadow: 0 0 0 4px rgba(37, 211, 102, .2); }

.kf-ct-sim-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--ks-line); }
.kf-ct-sim-nav .ks-btn:disabled { opacity: .45; cursor: default; transform: none; box-shadow: none; filter: none; }

.kf-ct-sim-side { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; min-width: 0; }
.kf-ct-sheet { overflow: hidden; border: 1px solid var(--ks-line); border-radius: 16px; background: #fff; }
.kf-ct-sheet-bar { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 10px 14px; background: #107c41; color: #fff; font-size: 13px; }
.kf-ct-sheet-bar i { font-size: 17px; }
.kf-ct-sheet-bar strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #fff; font-weight: 600; }
.kf-ct-sheet-scroll { overflow-x: auto; }
.kf-ct-sheet table { width: 100%; border-collapse: collapse; font-size: 12.5px; white-space: nowrap; }
.kf-ct-sheet th { padding: 5px 8px; border: 1px solid #e6ebe9; background: #f3f5f4; color: var(--ks-muted); font-weight: 600; }
.kf-ct-sheet td { max-width: 150px; overflow: hidden; padding: 6px 8px; border: 1px solid #eef1f0; color: var(--ks-ink); text-overflow: ellipsis; }
.kf-ct-sheet th:first-child, .kf-ct-sheet td:first-child { width: 28px; background: #f3f5f4; color: var(--ks-muted); text-align: center; }
.kf-ct-sheet tr.is-head td { background: #f8faf9; font-weight: 700; }
.kf-ct-sheet tr.is-first td:not(:first-child) { background: #e9f8f1; }
.kf-ct-sim.is-noheader .kf-ct-sheet tr.is-head td:not(:first-child) { background: #fff4dc; }

.kf-ct-card { padding: 18px; border: 1px solid var(--ks-line); border-radius: 18px; background: linear-gradient(180deg, #f3fbf7, #fff); box-shadow: 0 20px 40px -28px rgba(7, 94, 84, .5); }
.kf-ct-card-head { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px dashed var(--ks-line); }
.kf-ct-card-head .kf-ct-avatar { width: 44px; height: 44px; background: linear-gradient(135deg, var(--kh-wa), var(--kh-wa-teal)); color: #fff; font-size: 15px; }
.kf-ct-card-name { min-width: 0; line-height: 1.3; }
.kf-ct-card-name strong, .kf-ct-card-name small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kf-ct-card-name strong { color: var(--ks-ink); font-size: 15.5px; }
.kf-ct-card-name small { color: var(--ks-muted); font-size: 12.5px; }
.kf-ct-card-head em { max-width: 150px; overflow: hidden; padding: 4px 10px; border-radius: 999px; background: #dcfce7; color: #15803d; font-size: 12px; font-style: normal; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.kf-ct-card-fields { display: grid; gap: 8px; margin: 14px 0 0; }
.kf-ct-card-fields > div { display: grid; grid-template-columns: 124px minmax(0, 1fr); align-items: center; gap: 10px; font-size: 14px; }
.kf-ct-card-fields dt { display: flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; color: var(--ks-muted); font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.kf-ct-card-fields dt i { flex: none; font-size: 17px; color: var(--ks-primary); }
.kf-ct-card-fields .is-attr dt i { color: #7c3aed; }
.kf-ct-card-fields dd { min-width: 0; margin: 0; color: var(--ks-ink); overflow-wrap: anywhere; }
.kf-ct-card-fields dd small { display: inline-block; padding: 2px 7px; border-radius: 999px; background: #ede9fe; color: #6d28d9; font-size: 11px; font-weight: 700; white-space: nowrap; }
.kf-ct-card-skip { margin: 12px 0 0; color: var(--ks-muted); font-size: 13px; }

/* ---------- Groups ---------- */
.kf-ct-groups .kh-ind-panel { align-items: center; }
.kf-ct-grp-copy { min-width: 0; }
.kf-ct-grp-copy h3 { font-size: 1.5rem; }
.kf-ct-grp-copy > p:not([class]) { color: var(--ks-muted); font-size: 1.02rem; }
.kf-ct-grp-label { margin: 18px 0 8px; color: var(--ks-muted); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.kf-ct-grp-fields { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.kf-ct-grp-fields li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid var(--ks-line); border-radius: 10px; background: #fff; font-size: 13.5px; }
.kf-ct-grp-fields strong { color: var(--ks-ink); font-weight: 600; }
.kf-ct-grp-fields small { color: #7c3aed; font-size: 11.5px; font-weight: 700; }
.kf-ct-grp-msg { margin: 0; padding: 12px 14px; border-radius: 12px 12px 12px 4px; background: var(--kh-wa-bubble); color: #111b21; font-size: 14.5px; overflow-wrap: anywhere; box-shadow: 0 1px .5px rgba(11, 20, 26, .13); }
.kf-ct-grp-win { min-width: 0; overflow: hidden; border: 1px solid var(--ks-line); border-radius: 20px; background: #fff; box-shadow: var(--ks-shadow-lg); }
.kf-ct-grp-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 18px; }
.kf-ct-grp-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.kf-ct-grp-stats > div { min-width: 0; padding: 10px 6px; border: 1px solid var(--ks-line); border-radius: 12px; background: var(--ks-soft); text-align: center; }
.kf-ct-grp-stats strong { display: block; color: var(--ks-ink); font-size: 1.25rem; font-weight: 800; line-height: 1.25; font-variant-numeric: tabular-nums; }
.kf-ct-grp-stats strong i { font-size: 20px; color: var(--ks-primary); }
.kf-ct-grp-stats span { display: block; overflow: hidden; color: var(--ks-muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.kf-ct-grp-table { display: grid; overflow: hidden; border: 1px solid var(--ks-line); border-radius: 12px; }
.kf-ct-grp-tr { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); gap: 8px; padding: 9px 12px; color: var(--ks-ink); font-size: 13px; }
.kf-ct-grp-tr + .kf-ct-grp-tr { border-top: 1px solid var(--ks-line); }
.kf-ct-grp-tr span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kf-ct-grp-tr.is-head { background: var(--ks-soft); color: var(--ks-muted); font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.kf-ct-grp-import { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: #f0fbf5; font-size: 13px; }
.kf-ct-grp-import > i { font-size: 20px; color: var(--ks-primary); }
.kf-ct-grp-import span { min-width: 0; line-height: 1.3; }
.kf-ct-grp-import strong, .kf-ct-grp-import small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kf-ct-grp-import strong { color: var(--ks-ink); }
.kf-ct-grp-import small { color: var(--ks-muted); font-size: 12px; }
.kf-ct-grp-import em { padding: 3px 8px; border-radius: 999px; background: #fff; color: var(--ks-muted); font-size: 11.5px; font-style: normal; font-weight: 700; white-space: nowrap; }
.kf-ct-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 28px 0 0; padding: 0; list-style: none; }
.kf-ct-pills li { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 10px 16px; border: 1px solid var(--ks-line); border-radius: 999px; background: #fff; color: var(--ks-ink); font-size: 14px; font-weight: 600; }
.kf-ct-pills i { flex: none; font-size: 18px; color: var(--ks-primary); }

/* ---------- Custom attributes (dark) ---------- */
.kf-ct-pro { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 40px; align-items: start; }
.kf-ct-pro-card { min-width: 0; padding: 24px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 24px; background: rgba(255, 255, 255, .05); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.kf-ct-pro-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.kf-ct-avatar.is-lg { width: 52px; height: 52px; background: var(--kh-wa); color: #0b141a; font-size: 17px; }
.kf-ct-pro-name { min-width: 0; line-height: 1.35; }
.kf-ct-pro-name strong { display: block; color: #fff; font-size: 1.1rem; }
.kf-ct-pro-name small { display: block; color: rgba(255, 255, 255, .6); font-size: 13px; }
.kf-ct-pro-channels { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.kf-ct-pro-channels li { display: grid; grid-template-columns: 22px auto minmax(0, 1fr); align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid rgba(255, 255, 255, .08); border-radius: 12px; color: rgba(255, 255, 255, .7); font-size: 14px; transition: border-color .25s, background .25s, box-shadow .25s; }
.kf-ct-pro-channels li > i { font-size: 19px; color: var(--kh-wa); }
.kf-ct-pro-channels b { min-width: 0; overflow: hidden; color: #fff; font-weight: 600; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
.kf-ct-pro-channels em { margin-left: 6px; padding: 2px 7px; border-radius: 999px; background: rgba(37, 211, 102, .18); color: #4ade80; font-size: 11px; font-style: normal; font-weight: 700; }
.kf-ct-pro-channels li.is-used { border-color: var(--kh-wa); background: rgba(37, 211, 102, .1); box-shadow: 0 0 0 3px rgba(37, 211, 102, .12); }
.kf-ct-pro-label { margin: 22px 0 10px; color: var(--kh-wa); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.kf-ct-pro-attrs { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.kf-ct-pro-attrs li { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .04); }
.kf-ct-pro-attr-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: rgba(167, 139, 250, .16); color: #c4b5fd; font-size: 18px; }
.kf-ct-pro-attr-text { min-width: 0; line-height: 1.35; }
.kf-ct-pro-attr-text strong, .kf-ct-pro-attr-text small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kf-ct-pro-attr-text strong { color: #fff; font-size: 14.5px; }
.kf-ct-pro-attr-text small { color: rgba(255, 255, 255, .6); font-size: 12.5px; }
.kf-ct-toggle { position: relative; flex: none; width: 48px; height: 28px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .2); cursor: pointer; transition: background .2s; }
.kf-ct-toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .2s; }
.kf-ct-toggle[aria-pressed="true"] { background: var(--kh-wa); }
.kf-ct-toggle[aria-pressed="true"]::after { transform: translateX(20px); }
.kf-ct-toggle:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.kf-ct-pro-preview { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; min-width: 0; }
.kh-dark .kf-ct-seg { border-color: rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .06); box-shadow: none; }
.kh-dark .kf-ct-seg button { color: rgba(255, 255, 255, .75); }
.kh-dark .kf-ct-seg button:hover { color: #fff; }
.kh-dark .kf-ct-seg button[aria-pressed="true"] { background: var(--kh-wa); color: #0b141a; box-shadow: none; }
.kf-ct-template { padding: 14px 16px; border: 1px dashed rgba(255, 255, 255, .22); border-radius: 14px; background: rgba(0, 0, 0, .2); }
.kf-ct-template-label { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; color: rgba(255, 255, 255, .55); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.kf-ct-template-label i { font-size: 16px; }
.kf-ct-template p { margin: 0; color: rgba(255, 255, 255, .85); font-size: 14.5px; line-height: 1.65; overflow-wrap: anywhere; }
.kf-ct-template mark { padding: 1px 5px; border-radius: 6px; background: rgba(167, 139, 250, .22); color: #ddd6fe; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .86em; }
.kf-ct-pro-screens { display: grid; grid-template-columns: minmax(0, 1fr); }
.kf-ct-pro-screen { overflow: hidden; border-radius: 20px; background: #fff; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); }
.kf-ct-pro-wall { display: flex; flex-direction: column; justify-content: flex-end; min-height: 200px; padding: 16px; }
.kf-ct-pro-wall .kh-msg { max-width: 94%; }
.kf-ct-pro-wall .kh-sms { max-width: 94%; }
.kf-ct-pro-wall b { padding: 0 2px; border-radius: 4px; background: rgba(37, 211, 102, .2); font-weight: 700; }
.kf-ct-pro-wall .kh-sms b { background: rgba(37, 99, 235, .14); }
.kf-ct-pro-wall.is-mail { justify-content: flex-start; gap: 10px; }
.kf-ct-pro-wall.is-mail b { background: #ffedd5; }
.kf-ct-pro-wall.is-mail p { margin: 0; color: var(--ks-text); font-size: 14.5px; }
.kf-ct-pro-wall.is-mail .kf-ct-pro-subject { color: var(--ks-ink); font-size: 16px; font-weight: 700; }
.kf-ct-audience { display: flex; align-items: flex-start; gap: 8px; margin: 0; color: rgba(255, 255, 255, .72); font-size: 14px; }
.kf-ct-audience > i { flex: none; margin-top: 1px; font-size: 18px; color: var(--kh-wa); }
.kf-ct-audience b { color: #fff; }

/* ---------- Opt-outs ---------- */
.kf-ct-opt { min-width: 0; }
.kf-ct-opt .kh-builder-window { background: #fff; box-shadow: var(--ks-shadow-lg); }
.kf-ct-opt .kh-builder-bar em { font-variant-numeric: tabular-nums; }
.kf-ct-opt-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 18px; }
.kf-ct-opt-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.kf-ct-opt-row { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--ks-line); border-radius: 14px; background: #fff; transition: background .2s, border-color .2s, opacity .2s; }
.kf-ct-opt-row.is-out { border-color: #fecaca; background: #fffafa; }
.kf-ct-opt-row.is-none { opacity: .7; }
.kf-ct-opt-info { min-width: 0; line-height: 1.35; }
.kf-ct-opt-info strong { display: block; overflow: hidden; color: var(--ks-ink); font-size: 14.5px; text-overflow: ellipsis; white-space: nowrap; }
.kf-ct-opt-info small { display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--ks-muted); font-size: 12.5px; }
.kf-ct-opt-info small > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kf-ct-opt-pill { flex: none; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.is-send .kf-ct-opt-pill { background: #dcfce7; color: #15803d; }
.is-out .kf-ct-opt-pill { background: #fee2e2; color: #b91c1c; }
.is-none .kf-ct-opt-pill { background: #eef2f1; color: var(--ks-muted); }
.kf-ct-opt-btn { height: 34px; padding: 0 12px; border: 1px solid var(--ks-line); border-radius: 10px; background: #fff; color: var(--ks-ink); font: 600 13px/1 var(--ks-font); white-space: nowrap; cursor: pointer; transition: border-color .15s, background .15s, color .15s; }
.kf-ct-opt-btn:hover { border-color: var(--ks-primary); color: var(--ks-primary-700); }
.is-out .kf-ct-opt-btn { border-color: var(--ks-primary); background: var(--ks-primary); color: #fff; }
.is-out .kf-ct-opt-btn:hover { background: var(--ks-primary-700); color: #fff; }
.kf-ct-opt-note { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--ks-muted); font-size: 12.5px; }
.kf-ct-opt-note i { flex: none; font-size: 16px; }
.kf-ct-extras { margin-top: 56px; }

/* ---------- Timeline and FAQ ---------- */
.kf-ct-steps.is-timeline li::before { box-shadow: 0 0 0 6px #fff, 0 12px 26px rgba(18, 140, 126, .3); }
.kf-ct-faq-head { margin-top: 88px; margin-bottom: 36px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
    .kf-ct-attr { display: none; }
    .kf-ct-float-attr { right: -6px; }
    .kf-ct-float-opt { left: -8px; }
}
@media (max-width: 960px) {
    .kf-ct-attr { display: block; }
    .kf-ct-float-attr { right: 0; }
    .kf-ct-float-opt { left: 0; }
    .kf-ct-sim { padding: 22px; }
    .kf-ct-sim-grid, .kf-ct-pro { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    .kf-ct-pane { min-height: 0; }
    .kf-ct-faq-head { margin-top: 64px; }
}
@media (max-width: 640px) {
    .kf-ct-hero { padding: 8px 0 24px; }
    .kf-ct-float-attr, .kf-ct-float-opt { display: none; }
    .kf-ct-app { border-radius: 18px; }
    .kf-ct-app-body { padding: 12px; gap: 10px; }
    .kf-ct-search input { font-size: 16px; }
    .kf-ct-rows { min-height: 290px; }
    .kf-ct-row { gap: 8px; padding: 7px 6px; }
    .kf-ct-attr, .kf-ct-group { display: none; }
    .kf-ct-channels i { font-size: 16px; }
    .kf-ct-import { padding: 10px 12px; }

    .kf-ct-sim { padding: 16px; border-radius: 22px; }
    .kf-ct-stepper { gap: 6px; margin-bottom: 20px; }
    .kf-ct-stepper li { flex: none; }
    .kf-ct-stepper li.is-current { flex: 1; }
    .kf-ct-stepper button { gap: 8px; padding: 8px; font-size: 13px; }
    .kf-ct-stepper li:not(.is-current) button > span:last-child { display: none; }
    .kf-ct-pane h3 { font-size: 1.2rem; }
    .kf-ct-file { grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; padding: 12px; }
    .kf-ct-file-icon { width: 40px; height: 40px; font-size: 22px; }
    .kf-ct-map { grid-template-columns: minmax(0, 1fr); gap: 8px; }
    .kf-ct-map > i { display: none; }
    .kf-ct-map select { font-size: 16px; }
    .kf-ct-sim-nav .ks-btn { padding-left: 16px; padding-right: 16px; }
    .kf-ct-sim-nav .ks-btn:last-child { flex: 1; min-width: 0; }
    .kf-ct-card { padding: 14px; }
    .kf-ct-card-head { grid-template-columns: 40px minmax(0, 1fr); }
    .kf-ct-card-head .kf-ct-avatar { width: 40px; height: 40px; }
    .kf-ct-card-head em { grid-column: 1 / -1; justify-self: start; max-width: 100%; }
    .kf-ct-card-fields > div { grid-template-columns: 96px minmax(0, 1fr); font-size: 13.5px; }

    .kf-ct-grp-body { padding: 14px; }
    .kf-ct-grp-tr { grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(0, 1fr)); padding: 8px 10px; }
    .kf-ct-grp-tr span:nth-child(2) { display: none; }
    .kf-ct-grp-import em { display: none; }
    .kf-ct-pills { justify-content: flex-start; }
    .kf-ct-pills li { width: 100%; border-radius: 14px; }

    .kf-ct-pro-card { padding: 18px; border-radius: 20px; }
    .kf-ct-pro-channels li { grid-template-columns: 20px minmax(0, 1fr); }
    .kf-ct-pro-channels li > span { display: none; }
    .kf-ct-pro-channels b { text-align: left; }
    .kf-ct-seg button { gap: 4px; padding: 0 6px; font-size: 13px; }
    .kf-ct-seg button i { font-size: 15px; }
    .kf-ct-pro-wall { min-height: 0; padding: 12px; }

    .kf-ct-opt-body { padding: 12px; }
    .kf-ct-opt-row { grid-template-columns: 32px minmax(0, 1fr); gap: 6px 10px; }
    .kf-ct-opt-row .kf-ct-avatar { width: 32px; height: 32px; font-size: 12px; }
    .kf-ct-opt-info small { flex-wrap: wrap; gap: 4px 8px; }
    .kf-ct-opt-info small > span:last-child { white-space: normal; }
    .kf-ct-opt-btn { grid-column: 2; justify-self: start; height: 32px; }
    .kf-ct-extras { margin-top: 40px; }
}
