/* kh-flow: shared looping illustration for the connection guides.
 Sheet row -> automation tool -> CRM/ATS record (-> link back to the sheet).
 Add class "one-way" when the guide writes nothing back to the sheet. */
.kh-flow { position:relative; height:262px; margin: 10px 0 34px; border-radius:16px; overflow:hidden; font-family: var(--sans);
  background: linear-gradient(135deg,#22355C 0%,#2c4577 60%,#3a3f8f 100%); }
.kh-flow * { box-sizing:border-box; }
.kh-flow .sheet { position:absolute; left:3%; top:34px; width:280px; background:#fff; border-radius:10px; overflow:hidden; box-shadow:0 14px 40px rgba(0,0,0,.25); }
.kh-flow .sheet .ttl { background:#188038; color:#fff; font-size:11.5px; font-weight:700; padding:8px 12px; }
.kh-flow .r { display:grid; grid-template-columns: 94px 1fr 64px; font-size:10.5px; color:#22355C; border-bottom:1px solid #eef0f4; }
.kh-flow .r > span { padding:7px 8px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; border-right:1px solid #eef0f4; }
.kh-flow .r > span:last-child { border-right:0; }
.kh-flow .r.h { background:#f6f7f9; color:#8a93a3; font-family: var(--mono); font-size:9px; }
.kh-flow .lk { color:#0D5C63; font-weight:700; }
.kh-flow .r.new { animation: khf-row 9s infinite; }
.kh-flow .r.new .lk { animation: khf-link 9s infinite; }
.kh-flow .track { position:absolute; left:calc(3% + 292px); right:calc(3% + 242px); top:112px; height:2px; background:rgba(255,255,255,.18); }
.kh-flow .track .via { position:absolute; left:50%; top:12px; transform:translateX(-50%); font-size:10.5px; color:#c9d3e6; white-space:nowrap; }
.kh-flow .pkt { position:absolute; top:-5px; width:12px; height:12px; border-radius:50%; background:#fff; box-shadow:0 0 0 4px rgba(255,255,255,.18); opacity:0; }
.kh-flow .pkt.out { animation: khf-out 9s infinite; }
.kh-flow .pkt.back { background:#7fd1c7; animation: khf-back 9s infinite; }
.kh-flow .zoho { position:absolute; right:3%; top:30px; width:230px; background:#fff; border-radius:12px; padding:14px 16px;
  box-shadow:0 18px 50px rgba(0,0,0,.3); opacity:0; transform: translateY(14px) scale(.96); animation: khf-zoho 9s infinite; }
.kh-flow .zoho .bar { font-size:12px; font-weight:700; color:#fff; background:#0D5C63; margin:-14px -16px 12px; padding:9px 14px; border-radius:12px 12px 0 0; }
.kh-flow .zoho .f { display:flex; justify-content:space-between; font-size:11px; padding:6px 0; border-bottom:1px solid #f0f2f5; color:#8a93a3; }
.kh-flow .zoho .f b { color:#22355C; font-weight:600; }
.kh-flow .zoho .f i { font-style:normal; color:#0D5C63; font-weight:700; }
.kh-flow .cap { position:absolute; left:0; right:0; bottom:12px; text-align:center; color:#c9d3e6; font-size:12.5px; padding:0 12px; }
@keyframes khf-row { 0%,8% { opacity:0; transform:translateY(-8px); background:#fff; } 14% { opacity:1; transform:none; background:#fff6d6; } 30% { background:#fff6d6; } 40%,92% { opacity:1; background:#fff; } 100% { opacity:0; } }
@keyframes khf-out { 0%,18% { left:0; opacity:0; } 20% { opacity:1; } 38% { left:calc(100% - 12px); opacity:1; } 40%,100% { left:calc(100% - 12px); opacity:0; } }
@keyframes khf-zoho { 0%,38% { opacity:0; transform:translateY(14px) scale(.96); } 46%,92% { opacity:1; transform:none; } 100% { opacity:0; transform:translateY(14px) scale(.96); } }
@keyframes khf-back { 0%,52% { left:calc(100% - 12px); opacity:0; } 54% { opacity:1; } 70% { left:0; opacity:1; } 72%,100% { left:0; opacity:0; } }
@keyframes khf-link { 0%,70% { opacity:0; } 74% { opacity:1; background:#d6f2ee; } 86%,92% { opacity:1; background:transparent; } 100% { opacity:0; } }
@media (max-width: 640px) { .kh-flow { height:460px; } .kh-flow .sheet { left:50%; margin-left:-140px; top:24px; }
  .kh-flow .zoho { right:auto; left:50%; margin-left:-115px; top:210px; } .kh-flow { height:440px; } .kh-flow .track { display:none; } }
@media (prefers-reduced-motion: reduce) { .kh-flow .zoho, .kh-flow .r.new, .kh-flow .r.new .lk { animation:none; opacity:1; transform:none; } .kh-flow .pkt { display:none; } }
.kh-flow.one-way .pkt.back { display:none; }
.kh-flow.one-way .r { grid-template-columns: 94px 1fr 72px; }
