/* Zoho + Slack integration page only. Loaded via `extra: crm, mid, ptsk`. Every class is scoped with .ptsk- */
.ptsk-hero, .ptsk-sync, .ptsk-ad, .ptsk-steps, .ptsk-lim, .ptsk-cliq, .ptsk-cost, .ptsk-hire {
  --ptsk-ink: #082238; --ptsk-body: #334155; --ptsk-muted: #475569; --ptsk-line: #E2E8F0; --ptsk-paper: #F3F7F9;
  --ptsk-aub: #3F0E40; --ptsk-aub2: #2A0B2B; --ptsk-blue: #0A6FA8; --ptsk-green: #1E9E62; --ptsk-amber: #FFB81C;
}

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

.ptsk-ws { position: relative; display: grid; grid-template-columns: minmax(0, 168px) minmax(0, 1fr); margin: 0; min-width: 0; border-radius: 20px; overflow: hidden; background: #fff; border: 1px solid #DCE4EC; box-shadow: 0 50px 80px -46px rgba(8,34,56,.6); }
.ptsk-ws__side { padding: 14px 10px 18px; background: linear-gradient(180deg, var(--ptsk-aub), var(--ptsk-aub2)); color: #E9DDEA; }
.ptsk-ws__team { display: flex; align-items: center; gap: 8px; margin: 0 4px 14px; padding: 6px 8px; border-radius: 8px; background: #fff; font: 700 13px/1.2 var(--f-body); color: var(--ptsk-ink); }
.ptsk-ws__lbl { margin: 10px 6px 4px; font: 600 11px/1.2 var(--f-body); letter-spacing: .06em; text-transform: uppercase; color: #CDB8CF; }
.ptsk-ws__side ul { margin: 0; padding: 0; list-style: none; }
.ptsk-ws__side li { position: relative; display: flex; align-items: center; justify-content: space-between; padding: 5px 8px; border-radius: 6px; font: 500 12.5px/1.3 var(--f-body); color: #E9DDEA; transition: background-color .35s, color .35s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ptsk-ws__side li i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: transparent; transition: background-color .3s, transform .3s; }
.ptsk-ws__side li.is-ping { background: #1164A3; color: #fff; font-weight: 700; }
.ptsk-ws__side li.is-ping i { background: var(--ptsk-amber); transform: scale(1.2); }
.ptsk-ws__feed { display: grid; align-content: start; gap: 12px; min-height: 420px; margin: 0; padding: 18px 18px 40px; list-style: none; }
.ptsk-ws__cap { position: absolute; right: 12px; bottom: 10px; padding: 3px 8px; border-radius: 99px; background: #FFF4D6; color: #7A4F00; font: 700 10.5px/1.3 var(--f-body); letter-spacing: .06em; text-transform: uppercase; }

.ptsk-msg { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; align-items: start; padding: 8px 10px; border-radius: 10px; transition: opacity .4s, transform .5s cubic-bezier(.2,.8,.2,1), background-color .8s; }
.ptsk-msg > img { border-radius: 7px; background: #fff; box-shadow: 0 0 0 1px #E2E8F0; }
.ptsk-msg__h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; margin: 0; font-size: 12px; color: var(--ptsk-muted); }
.ptsk-msg__h b { font: 800 14px/1.3 var(--f-body); color: #1D1C1D; }
.ptsk-msg__h span { padding: 1px 4px; border-radius: 3px; background: #E8E8E8; color: #475569; font: 700 9.5px/1.3 var(--f-body); letter-spacing: .04em; }
.ptsk-msg__t { margin: 2px 0 0; font-size: 14px; line-height: 1.45; color: #1D1C1D; }
.ptsk-msg__card { margin: 6px 0 0; padding: 6px 10px; border-left: 4px solid #CFD8E3; border-radius: 4px; background: #F8FAFC; font-size: 12.5px; line-height: 1.45; color: var(--ptsk-body); }
.ptsk-msg__card b { display: block; font-size: 13px; color: var(--ptsk-ink); }
.ptsk-msg__card--hot { border-left-color: #D92D20; }
.ptsk-msg__btns { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; }
.ptsk-msg__btns:empty { display: none; }
.ptsk-msg__btns span { padding: 4px 10px; border-radius: 6px; border: 1px solid #C8CED6; background: #fff; font: 700 12px/1.3 var(--f-body); color: #1D1C1D; }
.ptsk-msg__btns span:first-child { border-color: #007A5A; background: #007A5A; color: #fff; }
.ptsk-msg--dm { background: #F5F0F6; }
.ptsk-at { padding: 0 3px; border-radius: 3px; background: #E8F5FA; color: #1164A3; }
.ptsk-ws.is-arm [data-s] { opacity: 0; transform: translateY(10px); }
.ptsk-ws.is-arm [data-s].is-on { opacity: 1; transform: none; }
.ptsk-ws.is-arm [data-s].is-new { background: #FFF8E6; }

/* ---------- 2. what syncs: three lanes, two directions ---------- */
.ptsk-lanes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 30px; }
.ptsk-lane { display: flex; flex-direction: column; border-radius: 20px; background: #fff; border: 1px solid var(--ptsk-line); border-top: 4px solid var(--c); box-shadow: 0 30px 60px -52px rgba(8,34,56,.5); overflow: hidden; }
.ptsk-lane header { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 4px 12px; align-items: center; padding: 18px 20px 14px; }
.ptsk-lane header img { grid-row: span 2; }
.ptsk-lane h3 { margin: 0; font: 700 19px/1.25 var(--f-display); color: var(--ptsk-ink); }
.ptsk-lane h3 a { color: inherit; text-decoration: none; }
.ptsk-lane h3 a:hover { color: var(--ptsk-blue); text-decoration: underline; }
.ptsk-lane header small { font-size: 13px; line-height: 1.35; color: var(--ptsk-muted); }
.ptsk-lane__dir { padding: 12px 20px 16px; border-top: 1px dashed var(--ptsk-line); }
.ptsk-lane__dir--back { margin-top: auto; background: var(--ptsk-paper); }
.ptsk-lane__k { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 8px; font: 800 11.5px/1.2 var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--ptsk-blue); }
.ptsk-lane__k::before { content: ""; width: 18px; height: 2px; background: currentColor; box-shadow: 4px 0 0 currentColor; }
.ptsk-lane__dir--back .ptsk-lane__k { color: #7A3E8A; }
.ptsk-lane ul { display: grid; gap: 7px; margin: 0; padding: 0 0 0 18px; font-size: 15px; line-height: 1.5; color: var(--ptsk-body); }
.ptsk-sync__more, .ptsk-cliq__more, .ptsk-hire__more { max-width: 78ch; margin: 24px 0 0; font-size: 16px; line-height: 1.6; color: var(--ptsk-body); }
.ptsk-sync__more a, .ptsk-cliq__more a, .ptsk-hire__more a, .ptsk-ladder a { color: var(--ptsk-blue); font-weight: 600; }

/* ---------- 3. alert designer ---------- */
.ptsk-ad__grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 22px; margin-top: 30px; align-items: start; }
.ptsk-ad__form { display: grid; gap: 14px; padding: 20px; border-radius: 20px; background: var(--ptsk-paper); border: 1px solid var(--ptsk-line); }
.ptsk-ad__set { margin: 0; padding: 0; border: 0; min-width: 0; }
.ptsk-ad__set legend { margin-bottom: 8px; padding: 0; font: 700 15px/1.3 var(--f-display); color: var(--ptsk-ink); }
.ptsk-ad__set legend label { min-height: 0; padding: 0; background: none; border: 0; font: inherit; }
.ptsk-ad__set > label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin: 0 6px 6px 0; padding: 8px 12px; border-radius: 10px; background: #fff; border: 1px solid #D5DEE7; font-size: 14.5px; color: var(--ptsk-body); cursor: pointer; }
.ptsk-ad__set > label:has(input:checked) { border-color: var(--ptsk-blue); box-shadow: 0 0 0 1px var(--ptsk-blue); color: var(--ptsk-ink); }
.ptsk-ad__set input { width: 18px; height: 18px; margin: 0; accent-color: var(--ptsk-blue); }
.ptsk-ad__set select { width: 100%; min-height: 46px; padding: 8px 12px; border-radius: 10px; border: 1px solid #C9D4DF; background: #fff; font: 500 15px/1.3 var(--f-body); color: var(--ptsk-ink); }
.ptsk-ad__out { display: grid; gap: 14px; padding: 20px; border-radius: 20px; background: #fff; border: 1px solid var(--ptsk-line); box-shadow: 0 40px 70px -56px rgba(8,34,56,.55); }
.ptsk-ad__routes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 0; padding: 0; list-style: none; counter-reset: r; }
.ptsk-ad__routes li { position: relative; display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; background: var(--ptsk-paper); border: 2px solid transparent; transition: background-color .3s, border-color .3s; }
.ptsk-ad__routes b { font: 700 14.5px/1.3 var(--f-display); color: var(--ptsk-ink); }
.ptsk-ad__routes small { font-size: 12px; line-height: 1.35; color: var(--ptsk-muted); }
.ptsk-ad__routes li.is-on { background: #E8F5FC; border-color: var(--ptsk-blue); }
.ptsk-ad__routes li[data-r="1"].is-on { background: #EAF7EF; border-color: var(--ptsk-green); }
.ptsk-ad__routes li[data-r="2"].is-on { background: #FFF6E0; border-color: #B7791F; }
.ptsk-ad__say { margin: 0; font-size: 16px; line-height: 1.55; color: var(--ptsk-body); }
.ptsk-ad__say b { color: var(--ptsk-ink); }
.ptsk-ad__why { display: grid; gap: 6px; margin: 0; padding: 0 0 0 18px; font-size: 14.5px; line-height: 1.5; color: var(--ptsk-body); }
.ptsk-ad__pv { border-radius: 14px; border: 1px solid #DDE3EA; overflow: hidden; }
.ptsk-ad__pvh { margin: 0; padding: 8px 12px; background: #F8F8F8; border-bottom: 1px solid #E5E7EB; font: 700 13px/1.3 var(--f-body); color: #1D1C1D; }
.ptsk-msg--pv { padding: 12px; }
.ptsk-msg--pv .ptsk-msg__h small { color: #7A4F00; }
.ptsk-ad__send { justify-self: start; }
.ptsk-ad__foot { max-width: 78ch; margin: 18px 0 0; font-size: 14px; line-height: 1.55; color: var(--ptsk-muted); }

/* ---------- 4. setup rail ---------- */
.ptsk-rail { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 30px 0 0; padding: 0; list-style: none; }
.ptsk-rail li { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; padding: 20px; border-radius: 18px; background: #fff; border: 1px solid var(--ptsk-line); }
.ptsk-rail__n { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--ptsk-ink); color: #fff; font: 800 18px/1 var(--f-display); }
.ptsk-rail li:nth-child(n+4) .ptsk-rail__n { background: var(--ptsk-blue); }
.ptsk-rail h3 { margin: 4px 0 6px; font: 700 17.5px/1.3 var(--f-display); color: var(--ptsk-ink); }
.ptsk-rail p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ptsk-body); }
.ptsk-rail p + p { margin-top: 8px; }
.ptsk-rail__apps { display: flex; gap: 6px; }

/* ---------- 5. limits: flip grid spacing ---------- */
.ptsk-lim .mk-flip { margin-top: 30px; }

/* ---------- 6. Slack or Cliq heatmap ---------- */
.ptsk-cliq .mk-heat { margin-top: 30px; }

/* ---------- 7. cost: two bills + notes ---------- */
.ptsk-cost__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, .9fr); gap: 16px; margin-top: 30px; align-items: start; }
.ptsk-bill { padding: 18px 20px; border-radius: 18px; background: #fff; border: 1px solid var(--ptsk-line); box-shadow: 0 30px 60px -54px rgba(8,34,56,.55); }
.ptsk-bill__h { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 2px 10px; align-items: center; margin: 0 0 12px; padding-bottom: 12px; border-bottom: 2px dashed var(--ptsk-line); }
.ptsk-bill__h img { grid-row: span 2; }
.ptsk-bill__h b { font: 700 17px/1.3 var(--f-display); color: var(--ptsk-ink); }
.ptsk-bill__h span { font-size: 13px; color: var(--ptsk-muted); }
.ptsk-bill dl { display: grid; gap: 10px; margin: 0; }
.ptsk-bill dl div { display: grid; gap: 2px; }
.ptsk-bill dt { font-size: 14px; color: var(--ptsk-muted); }
.ptsk-bill dd { margin: 0; font: 700 17px/1.35 var(--f-display); color: var(--ptsk-ink); }
.ptsk-bill dd small { font: 500 12.5px/1 var(--f-body); color: var(--ptsk-muted); }
.ptsk-bill__n { margin: 12px 0 0; font-size: 14px; line-height: 1.5; color: var(--ptsk-body); }
.ptsk-cost__side { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.ptsk-cost__side li { padding: 14px 16px; border-radius: 14px; background: var(--ptsk-paper); font-size: 15px; line-height: 1.5; color: var(--ptsk-body); }
.ptsk-cost__side b { display: block; margin-bottom: 2px; color: var(--ptsk-ink); }

/* ---------- 8. hire ladder ---------- */
.ptsk-ladder { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 34px 0 0; padding: 18px 0 0; list-style: none; }
.ptsk-ladder::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; border-radius: 6px; background: linear-gradient(90deg, #3FB97A, #00B2A9 45%, #00A3D9 70%, #1D3F8F); }
.ptsk-ladder li { position: relative; padding: 18px; border-radius: 18px; background: #fff; border: 1px solid var(--ptsk-line); }
.ptsk-ladder li::before { content: ""; position: absolute; left: 22px; top: -25px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--ptsk-green); }
.ptsk-ladder li[data-lvl="us"]::before { border-color: #1D3F8F; }
.ptsk-ladder li[data-lvl="us"] { border-color: #BFD3E6; background: linear-gradient(180deg, #F2F8FD, #fff); }
.ptsk-ladder__tag { display: inline-block; margin: 0 0 8px; padding: 3px 8px; border-radius: 99px; background: #EAF7EF; color: #17663F; font: 700 11.5px/1.3 var(--f-body); letter-spacing: .04em; text-transform: uppercase; }
.ptsk-ladder li[data-lvl="us"] .ptsk-ladder__tag { background: #E3ECF8; color: #1D3F8F; }
.ptsk-ladder h3 { margin: 0 0 6px; font: 700 17.5px/1.3 var(--f-display); color: var(--ptsk-ink); }
.ptsk-ladder p:not(.ptsk-ladder__tag) { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ptsk-body); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .ptsk-lanes, .ptsk-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ptsk-lane:last-child { grid-column: 1 / -1; }
  .ptsk-cost__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ptsk-cost__side { grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ptsk-ladder { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ptsk-ladder::before { display: none; }
  .ptsk-ladder li::before { display: none; }
}
@media (max-width: 900px) {
  .ptsk-hero .ptsk-hero__grid, .ptsk-ad__grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .ptsk-ws { grid-template-columns: 1fr; }
  .ptsk-ws__side { display: none; }
  .ptsk-ws__feed { min-height: 0; padding: 14px 12px 40px; }
  .ptsk-lanes, .ptsk-rail, .ptsk-cost__grid, .ptsk-cost__side, .ptsk-ladder { grid-template-columns: 1fr; }
  .ptsk-ad__routes { grid-template-columns: 1fr; }
  .ptsk-ad__form, .ptsk-ad__out { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .ptsk-msg, .ptsk-ws__side li, .ptsk-ad__routes li { transition: none; }
}
