/* /integrations/zoho-meta-facebook/ only. Loaded via `extra: crm, mid, ptmf`. Every class is scoped with .ptmf- */
.ptmf-hero, .ptmf-sync, .ptmf-routes, .ptmf-plan, .ptmf-setup, .ptmf-jobs, .ptmf-lim, .ptmf-hire {
  --ptmf-ink: #082238; --ptmf-body: #334155; --ptmf-muted: #475569; --ptmf-line: #E2E8F0; --ptmf-paper: #F3F7F9;
  --ptmf-meta: #0866FF; --ptmf-deep: #0A4FC4; --ptmf-blue: #0A6FA8; --ptmf-amber: #FFB81C; --ptmf-green: #13804A; --ptmf-coral: #B8401F;
}

/* ---------- hero ---------- */
.ptmf-hero .ptmf-hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.ptmf-hero .crm-sub { max-width: 48ch; }
.ptmf-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.ptmf-chips li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 13px 6px 6px; border-radius: 999px; background: #fff; border: 1px solid #DCE7EF; font: 600 13.5px/1.3 var(--f-body); color: var(--ptmf-ink); }
.ptmf-chips img { flex: none; width: 22px; height: 22px; }

.ptmf-relay { position: relative; margin: 0; display: grid; grid-template-columns: minmax(0, .92fr) 46px minmax(0, 1.08fr); align-items: center; gap: 0; padding: 18px; border-radius: 26px; background: linear-gradient(155deg, #fff 0%, #EEF4FF 100%); border: 1px solid var(--ptmf-line); box-shadow: 0 50px 90px -45px rgba(8,34,56,.55); }
.ptmf-relay__phone { position: relative; padding: 14px 12px 16px; border-radius: 22px; background: #fff; border: 6px solid #0E1C2C; box-shadow: 0 18px 30px -22px rgba(8,34,56,.7); min-width: 0; }
.ptmf-relay__bar { display: flex; align-items: center; gap: 7px; margin: 0 0 8px; }
.ptmf-relay__bar b { flex: 1; font: 800 13px/1.2 var(--f-display); color: var(--ptmf-ink); }
.ptmf-relay__bar em, .ptmf-relay__head em { font-style: normal; font: 700 10.5px/1 var(--f-body); letter-spacing: .05em; text-transform: uppercase; padding: 4px 7px; border-radius: 99px; background: #FFF4D6; color: #7A4F00; }
.ptmf-relay__ad { margin: 0 0 10px; padding: 8px 9px; border-radius: 10px; background: #EAF1FF; font: 700 12.5px/1.35 var(--f-body); color: var(--ptmf-deep); }
.ptmf-relay__fields { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.ptmf-relay__fields li { display: grid; gap: 2px; padding: 6px 9px; border-radius: 9px; border: 1.5px solid var(--ptmf-line); transition: border-color .3s; }
.ptmf-relay__fields span { font: 600 10.5px/1.2 var(--f-body); color: var(--ptmf-muted); }
.ptmf-relay__fields b { font: 600 13px/1.3 var(--f-body); color: var(--ptmf-ink); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ptmf-relay__submit { display: block; margin-top: 10px; padding: 9px; border-radius: 10px; background: var(--ptmf-meta); color: #fff; text-align: center; font: 800 13px/1 var(--f-display); transition: transform .2s, background-color .2s; }

.ptmf-relay__wire { position: relative; align-self: stretch; display: grid; place-items: center; }
.ptmf-relay__wire::before { content: ""; position: absolute; left: 4px; right: 4px; top: 50%; border-top: 2px dashed #9DB8DC; }
.ptmf-relay__wire span { position: relative; writing-mode: vertical-rl; transform: rotate(180deg); padding: 6px 2px; background: #F4F8FF; font: 700 10.5px/1 var(--f-body); letter-spacing: .05em; text-transform: uppercase; color: var(--ptmf-muted); }
.ptmf-relay__dot { position: absolute; left: 2px; top: calc(50% - 6px); width: 12px; height: 12px; border-radius: 50%; background: var(--ptmf-meta); box-shadow: 0 0 0 5px rgba(8,102,255,.18); opacity: 0; z-index: 1; }

.ptmf-relay__card { padding: 14px; border-radius: 18px; background: #fff; border: 1.5px solid var(--ptmf-line); box-shadow: 0 18px 30px -24px rgba(8,34,56,.6); min-width: 0; }
.ptmf-relay__head { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; }
.ptmf-relay__head b { flex: 1; font: 800 15px/1.2 var(--f-display); color: var(--ptmf-ink); }
.ptmf-relay__head em { background: #E4F4EC; color: #0E5C35; text-transform: none; letter-spacing: 0; font-size: 12px; }
.ptmf-relay__rows { margin: 0; display: grid; gap: 5px; }
.ptmf-relay__rows div { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 8px; padding: 5px 0; border-bottom: 1px solid #EEF2F6; }
.ptmf-relay__rows dt { font: 600 11.5px/1.35 var(--f-body); color: var(--ptmf-muted); }
.ptmf-relay__rows dd { margin: 0; font: 700 12.5px/1.35 var(--f-body); color: var(--ptmf-ink); }
.ptmf-relay__stages { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.ptmf-relay__stages li { flex: 1 1 auto; padding: 6px 7px; border-radius: 8px; text-align: center; background: var(--ptmf-paper); border: 1px solid var(--ptmf-line); font: 700 11px/1.2 var(--f-body); color: var(--ptmf-muted); transition: background-color .35s, color .35s, border-color .35s; }
.ptmf-relay__stages li.is-on { background: var(--ptmf-ink); border-color: var(--ptmf-ink); color: #fff; }
.ptmf-relay__back { display: flex; align-items: center; gap: 7px; margin: 10px 0 0; padding: 7px 9px; border-radius: 10px; background: #EAF1FF; font: 700 12px/1.3 var(--f-body); color: var(--ptmf-deep); transition: opacity .4s, transform .4s; }
.ptmf-relay__back img { flex: none; }

/* animated states (only when JS runs and motion is allowed) */
.ptmf-relay.is-live .ptmf-relay__fields li b { opacity: 0; transition: opacity .3s; }
.ptmf-relay.is-live .ptmf-relay__fields li.is-on { border-color: var(--ptmf-meta); }
.ptmf-relay.is-live .ptmf-relay__fields li.is-on b { opacity: 1; }
.ptmf-relay.is-live .ptmf-relay__submit.is-on { transform: scale(.95); background: var(--ptmf-deep); }
.ptmf-relay.is-live .ptmf-relay__dot.is-go { opacity: 1; animation: ptmf-fly .7s cubic-bezier(.4,0,.2,1) forwards; }
@keyframes ptmf-fly { from { left: 2px; } to { left: calc(100% - 14px); } }
.ptmf-relay.is-live .ptmf-relay__rows div { opacity: 0; transform: translateX(8px); transition: opacity .35s, transform .4s cubic-bezier(.2,.8,.2,1); }
.ptmf-relay.is-live .ptmf-relay__rows div.is-on { opacity: 1; transform: none; }
.ptmf-relay.is-live .ptmf-relay__head em { opacity: 0; transition: opacity .35s; }
.ptmf-relay.is-live .ptmf-relay__head em.is-on { opacity: 1; }
.ptmf-relay.is-live .ptmf-relay__back { opacity: 0; transform: translateY(6px); }
.ptmf-relay.is-live .ptmf-relay__back.is-on { opacity: 1; transform: none; }
/* static fallback: final state with Qualified highlighted */
.ptmf-relay:not(.is-live) .ptmf-relay__stages li[data-s="0"], .ptmf-relay:not(.is-live) .ptmf-relay__stages li[data-s="1"], .ptmf-relay:not(.is-live) .ptmf-relay__stages li[data-s="2"] { background: var(--ptmf-ink); border-color: var(--ptmf-ink); color: #fff; }

/* ---------- what syncs ---------- */
.ptmf-sync__lanes { display: grid; grid-template-columns: minmax(0, 1fr) 70px minmax(0, 1fr); gap: 0; margin-top: 30px; align-items: stretch; }
.ptmf-sync__col { padding: 22px; border-radius: 20px; background: #fff; border: 1px solid var(--ptmf-line); box-shadow: 0 24px 40px -36px rgba(8,34,56,.6); }
.ptmf-sync__col--back { background: #F7FBFF; }
.ptmf-sync__col h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font: 800 18px/1.3 var(--f-display); color: var(--ptmf-ink); }
.ptmf-sync__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ptmf-sync__col li { padding-left: 14px; border-left: 3px solid var(--ptmf-meta); font-size: 15px; line-height: 1.55; color: var(--ptmf-body); }
.ptmf-sync__col--back li { border-left-color: var(--ptmf-green); }
.ptmf-sync__col li b { display: block; font: 700 15px/1.4 var(--f-display); color: var(--ptmf-ink); }
.ptmf-sync__col a, .ptmf-apps a, .ptmf-route a, .ptmf-hire a, .ptmf-jobs .mk-tabs a { color: var(--ptmf-blue); font-weight: 600; }
.ptmf-sync__arrows { position: relative; display: grid; align-content: center; gap: 26px; justify-items: center; }
.ptmf-sync__arrows span { position: relative; display: block; width: 46px; height: 2px; background: var(--ptmf-meta); }
.ptmf-sync__arrows span::after { content: ""; position: absolute; top: -5px; right: -2px; border: 6px solid transparent; border-left: 9px solid var(--ptmf-meta); border-right: 0; }
.ptmf-sync__arrows .ptmf-sync__out { background: var(--ptmf-green); transform: rotate(180deg); }
.ptmf-sync__arrows .ptmf-sync__out::after { border-left-color: var(--ptmf-green); }
.ptmf-sync__in { animation: ptmf-pulse 2.6s ease-in-out infinite; }
@keyframes ptmf-pulse { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }

.ptmf-apps { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ptmf-apps li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; padding: 16px; border-radius: 16px; background: rgba(255,255,255,.75); border: 1px dashed #C9D8E4; }
.ptmf-apps b { display: block; font: 800 15.5px/1.3 var(--f-display); color: var(--ptmf-ink); margin-bottom: 3px; }
.ptmf-apps span { font-size: 14.5px; line-height: 1.55; color: var(--ptmf-body); }

/* ---------- routes ---------- */
.ptmf-route { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.ptmf-route li { position: relative; padding: 18px 16px; border-radius: 18px; background: var(--ptmf-paper); border: 1.5px solid var(--ptmf-line); }
.ptmf-route li.is-pick { background: #fff; border-color: var(--ptmf-meta); box-shadow: 0 22px 36px -28px rgba(8,102,255,.75); }
.ptmf-route h3 { margin: 10px 0 6px; font: 800 17px/1.3 var(--f-display); color: var(--ptmf-ink); }
.ptmf-route p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--ptmf-body); }
.ptmf-route__tag { display: inline-block; padding: 4px 9px; border-radius: 99px; background: #DCE9FF; color: #0A3F9E; font: 700 11.5px/1.2 var(--f-body); }
.ptmf-route__tag--old { background: #EEF2F6; color: #334155; }
.ptmf-route__tag--check { background: #FFF1D1; color: #6E4700; }
.ptmf-route__tag--build { background: #E3F4EA; color: #0E5C35; }
.ptmf-sub { margin: 44px 0 14px; font: 800 19px/1.35 var(--f-display); color: var(--ptmf-ink); }

/* ---------- planner (dark band) ---------- */
.ptmf-plan__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(20px, 3vw, 40px); margin-top: 34px; align-items: start; }
.ptmf-plan__form { display: grid; gap: 12px; margin: 0; min-width: 0; }
.ptmf-plan__box, .ptmf-plan__set { margin: 0; padding: 14px 16px 16px; border-radius: 16px; border: 1px solid rgba(255,255,255,.16); background: rgba(6,26,46,.35); min-width: 0; }
.ptmf-plan__box label { display: block; font: 700 14.5px/1.4 var(--f-body); color: #fff; }
.ptmf-plan__box output { display: inline-block; min-width: 2.6em; padding: 1px 8px; margin-left: 4px; border-radius: 8px; background: var(--ptmf-amber); color: #082238; font: 800 14px/1.4 var(--f-display); text-align: center; }
.ptmf-plan__box input[type="range"] { width: 100%; margin: 14px 0 2px; accent-color: #5FA4FF; height: 28px; cursor: pointer; }
.ptmf-plan__ticks { display: flex; justify-content: space-between; margin: 0; font: 600 12px/1 var(--f-body); color: #B9D3E2; }
.ptmf-plan__set { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.ptmf-plan__set--checks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ptmf-plan__set legend { padding: 0 6px; margin-left: -6px; font: 700 14.5px/1.3 var(--f-body); color: #fff; }
.ptmf-plan__set label { display: block; cursor: pointer; margin-top: 8px; }
.ptmf-plan__set input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ptmf-plan__set label span { display: flex; align-items: center; min-height: 44px; height: 100%; padding: 8px 12px; border-radius: 12px; border: 1px solid rgba(255,255,255,.24); border-left: 4px solid rgba(255,255,255,.3); color: #DCEAF2; font: 600 13.5px/1.3 var(--f-body); transition: background-color .2s, color .2s, border-color .2s; }
.ptmf-plan__set input:checked + span { background: #fff; border-color: #fff; border-left-color: var(--ptmf-meta); color: #082238; }
.ptmf-plan__set input:focus-visible + span { outline: 2px solid var(--ptmf-amber); outline-offset: 2px; }

.ptmf-plan__out { padding: 22px; border-radius: 20px; background: #fff; color: var(--ptmf-body); box-shadow: 0 40px 70px -40px rgba(0,0,0,.6); min-width: 0; }
.ptmf-plan__meter { height: 10px; border-radius: 99px; background: #E8EEF5; overflow: hidden; }
.ptmf-plan__fill { display: block; height: 100%; width: var(--w, 40%); border-radius: inherit; background: linear-gradient(90deg, #0866FF, #00A3D9); transition: width .6s cubic-bezier(.2,.8,.2,1); }
.ptmf-plan__syncs { display: flex; align-items: baseline; gap: 8px; margin: 14px 0 4px; }
.ptmf-plan__syncs b { font: 800 34px/1 var(--f-display); color: var(--ptmf-ink); font-variant-numeric: tabular-nums; }
.ptmf-plan__syncs span { font: 600 14px/1.3 var(--f-body); color: var(--ptmf-muted); }
.ptmf-plan__verdict { margin: 8px 0 2px; font: 800 19px/1.3 var(--f-display); color: var(--ptmf-deep); }
.ptmf-plan__price { margin: 0; font: 700 15px/1.4 var(--f-body); color: var(--ptmf-ink); }
.ptmf-plan__route { margin: 12px 0 0; padding: 8px 12px; border-radius: 10px; background: #F1F6FF; font: 700 14px/1.4 var(--f-body); color: var(--ptmf-ink); }
.ptmf-plan__list { list-style: none; margin: 12px 0 18px; padding: 0; display: grid; gap: 7px; }
.ptmf-plan__list li { position: relative; padding-left: 20px; font-size: 14.5px; line-height: 1.5; color: var(--ptmf-body); }
.ptmf-plan__list li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 9px; height: 9px; border-radius: 3px; background: var(--ptmf-meta); }
.ptmf-plan__list li.is-build::before { background: var(--ptmf-coral); }
.ptmf-plan__send { width: 100%; justify-content: center; }
.ptmf-plan__foot { margin: 22px 0 0; max-width: 92ch; font-size: 13.5px; line-height: 1.6; color: #C8DCEA; }

/* ---------- setup steps ---------- */
.ptmf-steps { list-style: none; margin: 30px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 22px; counter-reset: none; }
.ptmf-steps li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: start; padding: 16px 18px; border-radius: 18px; background: #fff; border: 1px solid var(--ptmf-line); }
.ptmf-steps li:last-child { grid-column: 1 / -1; border-color: var(--ptmf-meta); }
.ptmf-steps__n { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: linear-gradient(135deg, #0866FF, #00A3D9); color: #fff; font: 800 18px/1 var(--f-display); }
.ptmf-steps h3 { margin: 2px 0 4px; font: 800 17px/1.3 var(--f-display); color: var(--ptmf-ink); }
.ptmf-steps p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ptmf-body); }

/* ---------- jobs (kit I) ---------- */
.ptmf-jobs .mk-tabs { margin-top: 28px; }

/* ---------- limits (kit E) ---------- */
.ptmf-lim .mk-strip { margin-top: 26px; }

/* ---------- hire ---------- */
.ptmf-hire__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 28px; }
.ptmf-hire__col { padding: 20px; border-radius: 18px; background: var(--ptmf-paper); border-top: 5px solid #94A3B8; }
.ptmf-hire__col--mid { background: #F1F6FF; border-top-color: var(--ptmf-meta); }
.ptmf-hire__col--us { background: #EFF8F3; border-top-color: var(--ptmf-green); }
.ptmf-hire__col h3 { margin: 0 0 10px; font: 800 17px/1.3 var(--f-display); color: var(--ptmf-ink); }
.ptmf-hire__col ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: 15px; line-height: 1.5; color: var(--ptmf-body); }
.ptmf-hire__more { margin: 22px 0 0; max-width: 84ch; font-size: 15.5px; line-height: 1.65; color: var(--ptmf-body); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .ptmf-route { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ptmf-apps { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .ptmf-hero .ptmf-hero__grid, .ptmf-plan__grid { grid-template-columns: minmax(0, 1fr); }
  .ptmf-sync__lanes { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .ptmf-sync__arrows { grid-auto-flow: column; justify-content: center; gap: 30px; padding: 6px 0; }
  .ptmf-sync__arrows span { transform: rotate(90deg); width: 34px; }
  .ptmf-sync__arrows .ptmf-sync__out { transform: rotate(-90deg); }
  .ptmf-hire__cols { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .ptmf-relay { grid-template-columns: minmax(0, 1fr); padding: 12px; gap: 0; }
  .ptmf-relay__wire { height: 46px; }
  .ptmf-relay__wire::before { left: 50%; right: auto; top: 4px; bottom: 4px; border-top: 0; border-left: 2px dashed #9DB8DC; }
  .ptmf-relay__wire span { writing-mode: horizontal-tb; transform: none; padding: 2px 6px; }
  .ptmf-relay__dot { left: calc(50% - 6px); top: 2px; }
  .ptmf-relay.is-live .ptmf-relay__dot.is-go { animation-name: ptmf-fly-v; }
  .ptmf-route, .ptmf-steps, .ptmf-plan__set--checks { grid-template-columns: minmax(0, 1fr); }
  .ptmf-plan__set { grid-template-columns: minmax(0, 1fr); }
  .ptmf-plan__syncs b { font-size: 28px; }
}
@keyframes ptmf-fly-v { from { top: 2px; } to { top: calc(100% - 14px); } }
@media (prefers-reduced-motion: reduce) {
  .ptmf-sync__in { animation: none; opacity: 1; }
  .ptmf-relay *, .ptmf-plan__fill { transition: none !important; animation: none !important; }
}
