/* Feature page: SMS (/features/sms). Page-specific styles; shared theme lives in wa.css. */

.kf-sms-route-panel[hidden], .kf-sms-log-reason[hidden] { display: none !important; }

/* ---------- Hero: Android phone as the SMS gateway ---------- */
.kf-sms-stage { position: relative; display: flex; justify-content: center; padding: 24px 0 64px; }
.kf-sms-phone.kh-phone::before { top: 20px; width: 12px; height: 12px; border-radius: 50%; }
.kf-sms-screen { background: #f4f7f6; }
.kf-sms-status { flex: none; display: flex; align-items: center; justify-content: space-between; height: 34px; padding: 10px 24px 0; color: #111b21; font-size: 12px; font-weight: 600; }
.kf-sms-status span:last-child { display: flex; gap: 4px; font-size: 14px; }
.kf-sms-apphead { flex: none; display: flex; align-items: center; gap: 10px; padding: 12px 16px; }
.kf-sms-appicon { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(135deg, #22c55e, #0f766e); color: #fff; font-size: 23px; }
.kf-sms-apptitle { min-width: 0; line-height: 1.3; }
.kf-sms-apptitle strong { display: block; overflow: hidden; color: var(--ks-ink); font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.kf-sms-apptitle small { display: flex; align-items: center; overflow: hidden; color: var(--ks-muted); font-size: 12px; white-space: nowrap; }
.kf-sms-apptitle .kh-pulse { width: 8px; height: 8px; margin: 0 7px 0 2px; }

.kf-sms-sims { flex: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 0 12px; }
.kf-sms-sim { display: grid; gap: 2px; min-width: 0; padding: 9px 10px; border: 1.5px solid #a7dcc8; border-radius: 14px; background: #fff; color: inherit; font: inherit; text-align: left; cursor: pointer; transition: border-color .2s, background .2s, opacity .2s; }
.kf-sms-sim:focus-visible { outline: 2px solid var(--kh-wa-teal); outline-offset: 2px; }
.kf-sms-sim-top { display: flex; align-items: center; gap: 4px; min-width: 0; }
.kf-sms-sim-top i { flex: none; font-size: 18px; color: #16a34a; }
.kf-sms-sim-top strong { color: var(--ks-ink); font-size: 13.5px; }
.kf-sms-switch { position: relative; flex: none; width: 26px; height: 15px; margin-left: auto; border-radius: 999px; background: #22c55e; transition: background .2s; }
.kf-sms-switch::after { content: ""; position: absolute; top: 2px; left: 13px; width: 11px; height: 11px; border-radius: 50%; background: #fff; transition: left .2s; }
.kf-sms-sim small { display: block; overflow: hidden; color: var(--ks-muted); font-size: 11.5px; text-overflow: ellipsis; white-space: nowrap; }
.kf-sms-sim-count { overflow: hidden; color: var(--ks-muted); font-size: 11.5px; white-space: nowrap; text-overflow: ellipsis; }
.kf-sms-sim-count em { color: #15803d; font-style: normal; font-weight: 700; }
.kf-sms-sim-count b { color: var(--ks-ink); font-variant-numeric: tabular-nums; }
.kf-sms-sim[aria-pressed="false"] { border-color: var(--ks-line); background: #eef1f0; }
.kf-sms-sim[aria-pressed="false"] .kf-sms-sim-top i { color: #9ca3af; }
.kf-sms-sim[aria-pressed="false"] .kf-sms-switch { background: #cbd5e1; }
.kf-sms-sim[aria-pressed="false"] .kf-sms-switch::after { left: 2px; }
.kf-sms-sim[aria-pressed="false"] .kf-sms-sim-count em { color: #b91c1c; }

.kf-sms-qhead { flex: none; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 14px 16px 6px; }
.kf-sms-qhead strong { flex: none; color: var(--ks-muted); font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.kf-sms-qhead small { min-width: 0; overflow: hidden; color: var(--ks-muted); font-size: 11.5px; text-overflow: ellipsis; white-space: nowrap; }
.kf-sms-queue { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0 12px; overflow: hidden; list-style: none; }
.kf-sms-row { flex: none; display: flex; align-items: center; gap: 10px; min-width: 0; padding: 8px 10px; border: 1px solid #e3ebe7; border-radius: 12px; background: #fff; }
.kf-sms-row-icon { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; font-size: 16px; }
.kf-sms-row-main { flex: 1; min-width: 0; line-height: 1.3; }
.kf-sms-row-main strong, .kf-sms-row-main small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kf-sms-row-main strong { color: var(--ks-ink); font-size: 12.5px; }
.kf-sms-row-main small { color: var(--ks-muted); font-size: 11.5px; }
.kf-sms-row-meta { flex: none; display: grid; justify-items: end; gap: 2px; }
.kf-sms-row-meta em { color: var(--kh-wa-teal); font-size: 10.5px; font-style: normal; font-weight: 700; }
.kf-sms-st { padding: 2px 7px; border-radius: 999px; font-size: 10.5px; font-weight: 700; }
.is-delivered.kf-sms-row-icon, .kf-sms-st.is-delivered { background: #dcfce7; color: #15803d; }
.is-failed.kf-sms-row-icon, .kf-sms-st.is-failed { background: #fee2e2; color: #b91c1c; }
.is-pending.kf-sms-row-icon, .kf-sms-st.is-pending { background: #e0f2fe; color: #0369a1; }
.is-processing.kf-sms-row-icon, .kf-sms-st.is-processing { background: #fef3c7; color: #92400e; }
.kf-sms-campbar { flex: none; display: grid; gap: 6px; margin: 8px 12px 16px; padding: 10px 12px; border: 1px solid #e3ebe7; border-radius: 14px; background: #fff; }
.kf-sms-campbar-text { min-width: 0; line-height: 1.3; }
.kf-sms-campbar-text strong, .kf-sms-campbar-text small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kf-sms-campbar-text strong { color: var(--ks-ink); font-size: 12.5px; }
.kf-sms-campbar-text small { color: var(--ks-muted); font-size: 11.5px; }
.kf-sms-campbar-text b { color: var(--ks-ink); font-variant-numeric: tabular-nums; }
.kf-sms-meter { display: block; height: 6px; overflow: hidden; border-radius: 999px; background: #e3efe9; }
.kf-sms-meter span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--kh-wa-teal), var(--kh-wa)); transition: width .6s ease; }

.kf-sms-float-sched { top: 7%; right: -6%; animation-delay: -2s; }
.kf-sms-float-uni { top: 40%; left: -9%; animation-delay: -4s; }
.kf-sms-float-done { bottom: 14%; right: -5%; }

/* ---------- Route picker ---------- */
.kf-sms-routes { max-width: 1040px; margin: 0 auto; }
.kf-sms-route-seg, .kf-sms-life-seg { display: flex; width: fit-content; max-width: 100%; }
.kf-sms-route-seg { margin: 0 auto 32px; }
.kf-sms-route-seg button, .kf-sms-life-seg button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.kf-sms-route-seg button i, .kf-sms-life-seg button i { font-size: 17px; }
.kf-sms-route-panel { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 28px; align-items: center; animation: kh-panel-in .45s ease both; }
.kf-sms-route-panel.is-table { grid-template-columns: minmax(0, 1fr); }
.kf-sms-api { display: grid; gap: 16px; min-width: 0; }
.kf-sms-flow { display: flex; align-items: flex-start; min-width: 0; padding: 30px 20px; border: 1px solid var(--ks-line); border-radius: 24px; background: linear-gradient(135deg, #f1faf5, #fff 70%); box-shadow: var(--ks-shadow); }
.kf-sms-node { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 0; text-align: center; line-height: 1.3; }
.kf-sms-node strong { max-width: 100%; color: var(--ks-ink); font-size: 14.5px; overflow-wrap: anywhere; }
.kf-sms-node small { color: var(--ks-muted); font-size: 12.5px; }
.kf-sms-node-icon { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 8px; border-radius: 16px; color: #fff; font-size: 26px; }
.kf-sms-node-icon.is-kwital { background: linear-gradient(135deg, var(--kh-wa-dark), var(--kh-wa-teal)); }
.kf-sms-node-icon.is-android { background: linear-gradient(135deg, #22c55e, #15803d); }
.kf-sms-node-icon.is-api { background: linear-gradient(135deg, #0f766e, #2563eb); }
.kf-sms-node-icon.is-person { background: #e2e8f0; color: #334155; }
.kf-sms-node.is-main .kf-sms-node-icon { box-shadow: 0 0 0 7px rgba(22, 163, 74, .12); }
.kf-sms-wire { position: relative; flex: 0 1 64px; min-width: 20px; height: 2px; margin-top: 26px; background: repeating-linear-gradient(90deg, #8fd5bb 0 6px, transparent 6px 12px); }
.kf-sms-wire i { position: absolute; top: -4px; left: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--kh-wa); box-shadow: 0 0 10px var(--kh-wa); animation: kf-sms-run 1.8s linear infinite; }
@keyframes kf-sms-run { from { left: 0; opacity: 0; } 15%, 85% { opacity: 1; } to { left: calc(100% - 10px); opacity: 0; } }
@keyframes kf-sms-drop { from { top: 0; opacity: 0; } 15%, 85% { opacity: 1; } to { top: calc(100% - 10px); opacity: 0; } }
.kf-sms-provider-note { margin: 0; color: var(--ks-muted); font-size: 14px; text-align: center; }
.kf-sms-provider-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.kf-sms-provider { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border: 1.5px solid var(--ks-line); border-radius: 999px; background: #fff; color: var(--ks-ink); font: 600 13px/1 var(--ks-font); white-space: nowrap; cursor: pointer; transition: border-color .2s, background .2s, box-shadow .2s; }
.kf-sms-provider i { font-size: 16px; color: var(--ks-primary); }
.kf-sms-provider:hover { border-color: #9fdcc4; }
.kf-sms-provider[aria-pressed="true"] { border-color: var(--ks-primary); background: var(--ks-primary-50); color: var(--ks-primary-700); box-shadow: 0 0 0 3px rgba(18, 140, 126, .1); }
.kf-sms-facts { display: grid; gap: 10px; min-width: 0; margin: 0; padding: 24px; border: 1px solid var(--ks-line); border-radius: 22px; background: #fff; box-shadow: var(--ks-shadow); }
.kf-sms-facts div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 12px; padding-top: 10px; border-top: 1px dashed var(--ks-line); }
.kf-sms-facts div:first-child { padding-top: 0; border-top: 0; }
.kf-sms-facts dt { color: var(--ks-muted); font-size: 13px; font-weight: 600; }
.kf-sms-facts dd { margin: 0; color: var(--ks-ink); font-size: 14.5px; }
.kf-sms-facts dd.is-yes { color: #15803d; font-weight: 600; }
.kf-sms-table .ks-table { min-width: 560px; }

/* ---------- Character counter ---------- */
.kf-sms-counter { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: start; padding: 36px; border: 1px solid var(--ks-line); border-radius: 28px; background: #fff; box-shadow: var(--ks-shadow-lg); }
.kf-sms-compose, .kf-sms-preview { display: grid; gap: 16px; min-width: 0; }
.kf-sms-label { display: flex; align-items: center; gap: 6px; color: var(--ks-ink); font-size: 14px; font-weight: 600; }
.kf-sms-label i { font-size: 18px; color: var(--ks-primary); }
.kf-sms-textarea { display: block; width: 100%; min-height: 140px; padding: 14px 16px; border: 1.5px solid var(--ks-line); border-radius: 14px; background: #fff; color: var(--ks-ink); font: 15px/1.5 var(--ks-font); resize: vertical; transition: border-color .15s, box-shadow .15s; }
.kf-sms-textarea:focus { border-color: var(--ks-primary); outline: none; box-shadow: 0 0 0 4px rgba(18, 140, 126, .12); }
.kf-sms-samples { display: flex; flex-wrap: wrap; gap: 8px; }
.kf-sms-samples .kh-chip { min-height: 38px; padding: 6px 13px; font-size: 13px; }
.kf-sms-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0; }
.kf-sms-stats div { min-width: 0; padding: 12px 8px; border: 1px solid var(--ks-line); border-radius: 14px; background: var(--ks-soft); text-align: center; }
.kf-sms-stats dt { color: var(--ks-muted); font-size: 12px; font-weight: 600; }
.kf-sms-stats dd { margin: 2px 0 0; overflow: hidden; color: var(--ks-ink); font-size: 1.3rem; font-weight: 800; letter-spacing: -.02em; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
.kf-sms-stats dd.is-unicode { color: #7c3aed; }
.kf-sms-partbar { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 8px; }
.kf-sms-part { position: relative; display: grid; min-width: 0; padding: 8px 10px; overflow: hidden; border: 1px solid var(--ks-line); border-radius: 10px; background: #fff; }
.kf-sms-part i { position: absolute; top: 0; bottom: 0; left: 0; background: rgba(37, 211, 102, .18); transition: width .3s ease; }
.kf-sms-part b, .kf-sms-part small { position: relative; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kf-sms-part b { color: var(--ks-ink); font-size: 12px; }
.kf-sms-part small { color: var(--ks-muted); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.kf-sms-part.is-more { place-items: center; background: var(--ks-soft); }
.kf-sms-credits { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 14px 16px; border-radius: 14px; background: var(--ks-primary-50); }
.kf-sms-credits label { color: var(--ks-ink); font-size: 13.5px; font-weight: 600; }
.kf-sms-credits input { width: 120px; max-width: 100%; height: 40px; padding: 0 12px; border: 1.5px solid var(--ks-line); border-radius: 10px; background: #fff; color: var(--ks-ink); font: 600 15px var(--ks-font); }
.kf-sms-credits input:focus { border-color: var(--ks-primary); outline: none; box-shadow: 0 0 0 4px rgba(18, 140, 126, .12); }
.kf-sms-credits p { flex: 1 1 200px; min-width: 0; margin: 0; color: var(--ks-text); font-size: 14px; }
.kf-sms-credits b { color: var(--ks-ink); font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.kf-sms-credits span { color: var(--ks-muted); font-size: 13px; }
.kf-sms-pscreen { width: 100%; }
.kf-sms-pbody { min-height: 300px; }
.kf-sms-bubble { max-width: 86%; white-space: pre-wrap; overflow-wrap: anywhere; }
.kf-sms-psplit { margin: auto 0 0; color: var(--ks-muted); font-size: 12px; text-align: center; }
.kf-sms-rules { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.kf-sms-rules li { padding: 10px 14px; border: 1px solid var(--ks-line); border-radius: 12px; background: #fff; color: var(--ks-muted); font-size: 13.5px; line-height: 1.45; }
.kf-sms-rules strong { display: block; color: var(--ks-ink); }

/* ---------- Delivery status (dark) ---------- */
.kf-sms-life { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; align-items: center; max-width: 1040px; margin: 0 auto; }
.kf-sms-life-controls { display: grid; gap: 24px; min-width: 0; }
.kf-sms-life-seg { border-color: rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .06); box-shadow: none; }
.kf-sms-life-seg button { color: rgba(255, 255, 255, .8); }
.kf-sms-life-seg button:hover { color: #fff; }
.kf-sms-life-seg button[aria-pressed="true"] { background: var(--kh-wa); color: #0b141a; }
.kf-sms-track { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.kf-sms-track::before { content: ""; position: absolute; top: 24px; left: 12.5%; right: 12.5%; height: 2px; background: rgba(255, 255, 255, .15); }
.kf-sms-track li { min-width: 0; }
.kf-sms-track button { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; width: 100%; padding: 0; border: 0; background: none; color: rgba(255, 255, 255, .6); font: 600 13px/1.2 var(--ks-font); cursor: pointer; }
.kf-sms-track button i { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 50%; background: #10201f; color: rgba(255, 255, 255, .7); font-size: 22px; transition: background .25s, border-color .25s, color .25s, box-shadow .25s; }
.kf-sms-track button span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kf-sms-track button:hover i { border-color: rgba(37, 211, 102, .6); }
.kf-sms-track button.is-done i { border-color: rgba(37, 211, 102, .5); background: #133a2c; color: var(--kh-wa); }
.kf-sms-track button[aria-pressed="true"] { color: #fff; }
.kf-sms-track button[aria-pressed="true"] i { border-color: var(--kh-wa); background: var(--kh-wa); color: #0b141a; box-shadow: 0 0 0 5px rgba(37, 211, 102, .18); }
.kf-sms-track button.is-fail[aria-pressed="true"] i { border-color: #f87171; background: #f87171; color: #2a0b0b; box-shadow: 0 0 0 5px rgba(248, 113, 113, .2); }
.kf-sms-life-detail { min-height: 168px; padding: 24px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 20px; background: rgba(255, 255, 255, .05); }
.kf-sms-life-detail.is-swap h3, .kf-sms-life-detail.is-swap [data-kf-sms-life-desc] { animation: kh-panel-in .4s ease both; }
.kf-sms-life-step { margin: 0 0 6px; color: var(--kh-wa); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.kf-sms-life-detail h3 { font-size: 1.3rem; }
.kf-sms-life-detail p:last-child { margin: 0; color: rgba(255, 255, 255, .72); }
.kf-sms-log { min-width: 0; overflow: hidden; border-radius: 20px; background: #fff; color: var(--ks-text); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .55); }
.kf-sms-log .kh-builder-bar em.is-info { background: #dbeafe; color: #1d4ed8; }
.kf-sms-log .kh-builder-bar em.is-fail { background: #fee2e2; color: #b91c1c; }
.kf-sms-log-body { display: grid; gap: 14px; padding: 18px 20px 20px; }
.kf-sms-log-row { display: flex; align-items: center; gap: 12px; min-width: 0; }
.kf-sms-log-icon { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; font-size: 20px; }
.kf-sms-log-main { flex: 1; min-width: 0; line-height: 1.35; }
.kf-sms-log-main strong, .kf-sms-log-main small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kf-sms-log-main strong { color: var(--ks-ink); }
.kf-sms-log-main small { color: var(--ks-muted); font-size: 12.5px; }
.kf-sms-log-msg { margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--ks-soft); color: var(--ks-ink); font-size: 14px; }
.kf-sms-log-times { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; }
.kf-sms-log-times div { min-width: 0; padding: 9px 12px; border: 1px solid var(--ks-line); border-radius: 10px; transition: opacity .3s; }
.kf-sms-log-times div.is-empty { opacity: .5; }
.kf-sms-log-times dt { color: var(--ks-muted); font-size: 11.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.kf-sms-log-times dd { margin: 2px 0 0; overflow: hidden; color: var(--ks-ink); font-size: 14px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.kf-sms-log-reason { display: flex; align-items: center; gap: 8px; margin: 0; padding: 10px 12px; border-radius: 10px; background: #fef2f2; color: #b91c1c; font-size: 13.5px; font-weight: 600; }
.kf-sms-log-reason i { flex: none; font-size: 18px; }
.kf-sms-life-perks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 1040px; margin: 40px auto 0; padding: 0; list-style: none; }
.kf-sms-life-perks li { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 14px 16px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 14px; background: rgba(255, 255, 255, .04); color: rgba(255, 255, 255, .82); font-size: 14px; }
.kf-sms-life-perks i { flex: none; font-size: 20px; color: var(--kh-wa); }

/* ---------- Use cases ---------- */
.kf-sms-ind-screen { width: 100%; }
.kf-sms-ind-screen .kh-screen-body { min-height: 280px; }
.kf-sms-ind-screen .kh-sms { overflow-wrap: anywhere; }
.kf-sms-ind-screen .kh-sms-avatar { font-size: 17px; }
.kf-sms-ind-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: auto 0 0; }
.kf-sms-ind-meta span { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; padding: 4px 10px; border-radius: 999px; background: var(--ks-soft); color: var(--ks-muted); font-size: 12px; font-weight: 600; }
.kf-sms-ind-meta i { flex: none; font-size: 15px; color: var(--ks-primary); }

/* ---------- Android gateway (teal) ---------- */
.kf-sms-tool { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .14); }
.kf-sms-tool span { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .12); color: #fff; font-size: 12px; font-weight: 600; }
.kf-sms-tool span i { font-size: 14px; }
.kf-sms-tool > i { font-size: 15px; color: #b9f6d0; }
.kf-sms-tool span.is-on { background: rgba(37, 211, 102, .3); }
.kf-sms-tool span.is-off { background: rgba(255, 255, 255, .06); color: rgba(255, 255, 255, .6); }

/* ---------- FAQ ---------- */
.kf-sms-faq { margin-top: 80px; }
.kf-sms-faq-title { margin-bottom: 20px; font-size: 1.4rem; text-align: center; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
    .kf-sms-float-sched, .kf-sms-float-done { right: -2%; }
    .kf-sms-float-uni { left: -2%; }
}
@media (max-width: 960px) {
    .kf-sms-stage { max-width: 560px; width: 100%; margin: 0 auto; }
    .kf-sms-float-sched, .kf-sms-float-done { right: 0; }
    .kf-sms-float-uni { left: 0; }
    .kf-sms-route-panel { grid-template-columns: minmax(0, 1fr); }
    .kf-sms-counter { grid-template-columns: minmax(0, 1fr); padding: 24px; }
    .kf-sms-life { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
    .kf-sms-stage { padding: 12px 0 60px; }
    .kf-sms-phone { max-width: 100%; }
    .kf-sms-float-sched, .kf-sms-float-uni { display: none; }
    .kf-sms-float-done { top: auto; bottom: 70px; right: -4px; }
    .kf-sms-row { gap: 8px; }
    .kf-sms-queue .kf-sms-row-icon { display: none; }
    .kf-sms-route-seg, .kf-sms-life-seg { width: 100%; }
    .kf-sms-route-seg button, .kf-sms-life-seg button { flex: 1; min-width: 0; height: auto; min-height: 40px; padding: 6px; font-size: 13px; line-height: 1.15; white-space: normal; }
    .kf-sms-route-seg button i { display: none; }
    .kf-sms-flow { flex-direction: column; align-items: center; padding: 22px 16px; }
    .kf-sms-node { flex: none; width: 100%; }
    .kf-sms-node-icon { width: 46px; height: 46px; margin-bottom: 4px; border-radius: 14px; font-size: 22px; }
    .kf-sms-wire { flex: none; width: 2px; min-width: 0; height: 30px; margin: 8px 0; background: repeating-linear-gradient(180deg, #8fd5bb 0 6px, transparent 6px 12px); }
    .kf-sms-wire i { left: -4px; animation-name: kf-sms-drop; }
    .kf-sms-provider-list { flex-wrap: nowrap; justify-content: flex-start; margin: 0 -18px; padding: 0 18px 6px; overflow-x: auto; scrollbar-width: none; }
    .kf-sms-provider-list::-webkit-scrollbar { display: none; }
    .kf-sms-provider { flex: none; }
    .kf-sms-facts { padding: 18px; }
    .kf-sms-facts div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
    .kf-sms-counter { padding: 18px; border-radius: 22px; }
    .kf-sms-samples { flex-wrap: nowrap; margin: 0 -18px; padding: 0 18px 4px; overflow-x: auto; scrollbar-width: none; }
    .kf-sms-samples::-webkit-scrollbar { display: none; }
    .kf-sms-samples .kh-chip { flex: none; }
    .kf-sms-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .kf-sms-partbar { grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); }
    .kf-sms-pbody { min-height: 240px; }
    .kf-sms-track button { font-size: 11.5px; }
    .kf-sms-track button i { width: 40px; height: 40px; font-size: 19px; }
    .kf-sms-track::before { top: 20px; }
    .kf-sms-life-detail { padding: 20px; }
    .kf-sms-log-body { padding: 16px; }
    .kf-sms-life-perks { grid-template-columns: minmax(0, 1fr); }
    .kf-sms-faq { margin-top: 56px; }
}
