/* Google Workspace integration page only. Loaded via `extra: crm, mid, p-integrations-google-workspace`. Every class is scoped with .pigw- */

/* ---------- 1. hero: Google items attaching to one CRM record ---------- */
.pigw-hero .pigw-hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr); align-items: center; }
.pigw-hero .crm-sub { max-width: 46ch; }
.pigw-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; max-width: 600px; }
.pigw-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; }
.pigw-chips img { flex: none; width: 20px; height: 20px; }

.pigw-att { position: relative; margin: 0; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 18px; align-items: center; padding: 22px; border-radius: 24px; background: linear-gradient(160deg, #F4F8FC, #EAF3F8); border: 1px solid #DCE4EC; box-shadow: 0 44px 80px -50px rgba(8,34,56,.55); }
.pigw-att__tag { position: absolute; top: 12px; right: 16px; margin: 0; font: 800 10.5px/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: #94A3B8; }
.pigw-att__src { display: grid; gap: 10px; min-width: 0; }
.pigw-att__lab { display: flex; align-items: center; gap: 7px; margin: 0 0 2px; font: 700 12px/1.2 var(--f-body); letter-spacing: .06em; text-transform: uppercase; color: #475569; }
.pigw-item { position: relative; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: #fff; border: 1px solid #E2E8F0; box-shadow: 0 14px 26px -22px rgba(8,34,56,.6); transition: transform .7s cubic-bezier(.5,0,.2,1), opacity .5s, border-color .3s; }
.pigw-item img { flex: none; }
.pigw-item p { margin: 0; min-width: 0; }
.pigw-item b { display: block; font: 700 13px/1.35 var(--f-display); color: #082238; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pigw-item span { display: block; font: 500 11.5px/1.4 var(--f-body); color: #64748B; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pigw-item--mail { --k: #EA4335; } .pigw-item--cal { --k: #4285F4; } .pigw-item--drive { --k: #FBBC04; }
.pigw-item.is-go { transform: translateX(46px) scale(.92); opacity: .35; border-color: var(--k); }
.pigw-item.is-done { opacity: .45; }
.pigw-att__rec { min-width: 0; border-radius: 18px; background: #fff; border: 1px solid #DCE4EC; overflow: hidden; }
.pigw-rec__top { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid #EDF2F6; }
.pigw-rec__top p { margin: 0; flex: 1; min-width: 0; }
.pigw-rec__top span { display: block; font: 700 10px/1.2 var(--f-body); letter-spacing: .12em; text-transform: uppercase; color: #64748B; }
.pigw-rec__top b { display: block; font: 700 14.5px/1.35 var(--f-display); color: #082238; }
.pigw-rec__top em { flex: none; padding: 4px 9px; border-radius: 99px; background: #FFF4D6; color: #8A5A00; font: 700 11px/1.2 var(--f-body); font-style: normal; }
.pigw-rec__meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: 10px 16px; border-bottom: 1px solid #EDF2F6; }
.pigw-rec__meta div { min-width: 0; }
.pigw-rec__meta dt { font: 700 9.5px/1.3 var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: #94A3B8; }
.pigw-rec__meta dd { margin: 2px 0 0; font: 700 13px/1.35 var(--f-display); color: #082238; }
.pigw-rec__rel { display: grid; gap: 8px; margin: 0; padding: 12px 14px; list-style: none; }
.pigw-rec__rel li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1px 10px; padding: 9px 12px; border-radius: 11px; background: #F6F9FB; border: 1px solid transparent; transition: background .4s, border-color .4s, box-shadow .4s; }
.pigw-rec__rel span { font: 700 12.5px/1.35 var(--f-body); color: #082238; }
.pigw-rec__rel b { grid-row: span 2; align-self: center; display: grid; place-items: center; min-width: 28px; height: 28px; border-radius: 99px; background: #E2E8F0; color: #475569; font: 800 13px/1 var(--f-body); transition: background .4s, color .4s; }
.pigw-rec__rel i { font: 500 11.5px/1.4 var(--f-body); font-style: normal; color: #94A3B8; transition: color .4s; }
.pigw-rec__rel li.is-got { background: #EEF6FF; border-color: #BFD8F5; box-shadow: 0 0 0 3px rgba(66,133,244,.1); }
.pigw-rec__rel li.is-got b { background: #1D3F8F; color: #fff; }
.pigw-rec__rel li.is-got i { color: #1D3F8F; }
.pigw-rec__foot { display: flex; align-items: center; gap: 9px; margin: 0; padding: 11px 16px; background: #082238; color: #CFE3EE; font: 600 12.5px/1.35 var(--f-body); }
.pigw-rec__dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: #FFB81C; box-shadow: 0 0 0 4px rgba(255,184,28,.2); }
.pigw-att.is-full .pigw-rec__dot { background: #3FB97A; box-shadow: 0 0 0 4px rgba(63,185,122,.22); }

/* ---------- 2. fit ---------- */
.pigw-fit__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 20px; margin-top: 34px; }
.pigw-fit__grid > div { padding: 24px 26px; border-radius: 22px; background: #fff; border: 1px solid #E2E8F0; }
.pigw-fit__yes { border-top: 5px solid #1E9E62 !important; }
.pigw-fit__no { border-top: 5px solid #E8A800 !important; background: #FFFCF3 !important; }
.pigw-fit__grid h3 { margin: 0 0 12px; font: 700 19px/1.3 var(--f-display); color: #082238; }
.pigw-fit__grid ul { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.pigw-fit__grid li { padding: 11px 0; border-bottom: 1px solid #EDF2F6; font-size: 15.5px; line-height: 1.55; color: #475569; }
.pigw-fit__grid li:last-child { border-bottom: 0; padding-bottom: 0; }
.pigw-fit__grid li b { color: #082238; }
.pigw-fit__grid a { color: #0B5FA5; font-weight: 600; }

/* ---------- 3. services strip ---------- */
.pigw-strip { margin-top: 30px; }

/* ---------- 4. heatmap ---------- */
.pigw-heat { margin-top: 30px; }

/* ---------- 5. scroll-story J6: record assembling ---------- */
.pigw-rb { padding: 0; background: linear-gradient(180deg, #F1F6FD 0%, #FFFFFF 100%); overflow-x: clip; }
.pigw-rb__stage { padding-top: clamp(64px, 8vw, 104px); padding-bottom: clamp(64px, 8vw, 104px); }
.pigw-rb__head .pg-answer { margin-bottom: 0; }
.pigw-rb__jump { display: none; }
.pigw-rb__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; margin-top: 32px; }
.pigw-rb__art { position: relative; }
.pigw-rb__rec { display: block; width: 100%; height: auto; filter: drop-shadow(0 30px 40px rgba(8,34,56,.12)); }
.pigw-rb__bar { display: none; }
.pigw-rb__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.pigw-rb__st { background: #fff; border-radius: 22px; padding: 22px 24px; box-shadow: 0 30px 60px -44px rgba(8,34,56,.45); border-top: 5px solid var(--c); }
.pigw-rb__when { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 8px; font: 800 12.5px/1.3 var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--c); }
.pigw-rb__n { padding: 4px 9px; border-radius: 99px; background: var(--c); color: #fff; letter-spacing: .06em; }
.pigw-rb__st h3 { margin: 0 0 8px; font: 700 clamp(21px, 1rem + .8vw, 26px)/1.25 var(--f-display); letter-spacing: -.02em; color: #082238; }
.pigw-rb__st > p:not([class]) { margin: 0 0 14px; font-size: 16.5px; line-height: 1.6; color: #334155; }
.pigw-rb__apps { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.pigw-rb__apps a, .pigw-rb__apps span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px 6px 7px; border-radius: 99px; background: #F3F7F9; border: 1px solid #E2E8F0; font: 600 13px/1.2 var(--f-body); color: #082238; text-decoration: none; transition: border-color .2s, background .2s; }
.pigw-rb__apps a:hover { border-color: var(--c); background: #fff; }
.pigw-rb__note { margin: 26px 0 0; font-size: 14px; color: #64748B; max-width: 80ch; }

.pigw-rb--live .pigw-rb__track { height: calc(100vh + 6 * 52vh); }
.pigw-rb--live .pigw-rb__stage { position: sticky; top: 0; height: 100vh; min-height: 640px; display: flex; flex-direction: column; justify-content: center; padding-top: 92px; padding-bottom: 28px; }
.pigw-rb--live .pg-h2 { font-size: clamp(26px, 1rem + 1.2vw, 36px); margin-bottom: 8px; }
.pigw-rb--live .pg-answer { font-size: 16px; max-width: 86ch; }
.pigw-rb--live .pigw-rb__jump { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 14px 0 0; padding: 0; }
.pigw-rb__jump button { font: 600 13px/1.2 var(--f-body); color: #082238; background: #fff; border: 1px solid #E2E8F0; padding: 9px 13px; border-radius: 99px; cursor: pointer; transition: background .3s, color .3s, border-color .3s; }
.pigw-rb__jump button.is-past { border-color: #1D3F8F; }
.pigw-rb__jump button[aria-current="true"] { background: #1D3F8F; color: #fff; border-color: #1D3F8F; }
.pigw-rb__jump button:focus-visible { outline: 2px solid #FFB81C; outline-offset: 2px; }
.pigw-rb--live .pigw-rb__grid { margin-top: 18px; align-items: center; }
.pigw-rb--live .pigw-rb__rec { max-height: min(44vh, 400px); margin: 0 auto; }
.pigw-rb--live .pigw-rb__pc { opacity: 0; transform: translateY(-18px); transform-box: fill-box; transition: opacity .55s, transform .65s cubic-bezier(.2,.9,.3,1.25); }
.pigw-rb--live .pigw-rb__pc.is-in { opacity: 1; transform: none; }
.pigw-rb--live .pigw-rb__bar { display: flex; justify-content: center; gap: 6px; margin-top: 14px; }
.pigw-rb__bar i { width: 26px; height: 5px; border-radius: 4px; background: rgba(8,34,56,.14); transition: background .4s; } .pigw-rb__bar i.on { background: #FFB81C; }
.pigw-rb--live .pigw-rb__list { display: block; position: relative; min-height: 330px; }
.pigw-rb--live .pigw-rb__st { position: absolute; left: 0; right: 0; top: 50%; opacity: 0; pointer-events: none; transform: translateY(-44%) scale(.97); transition: opacity .2s, transform .3s; }
.pigw-rb--live .pigw-rb__st.is-on { opacity: 1; pointer-events: auto; transform: translateY(-50%); transition: opacity .45s .12s, transform .6s .12s cubic-bezier(.2,.8,.2,1); }
.pigw-rb--live .pigw-rb__note { margin-top: 14px; font-size: 13px; }
@media (max-width: 900px) { .pigw-rb__grid { grid-template-columns: 1fr; } .pigw-rb__art { max-width: 520px; } }
@media (max-height: 780px) {
  .pigw-rb--live .pigw-rb__stage { padding-top: 84px; padding-bottom: 16px; }
  .pigw-rb--live .hp-kick { display: none; }
  .pigw-rb--live .pg-answer { font-size: 15px; line-height: 1.5; }
  .pigw-rb--live .pigw-rb__jump { margin-top: 10px; }
  .pigw-rb--live .pigw-rb__grid { margin-top: 10px; }
  .pigw-rb--live .pigw-rb__rec { max-height: 36vh; }
  .pigw-rb--live .pigw-rb__st { padding: 18px 20px; }
  .pigw-rb--live .pigw-rb__st > p:not([class]) { font-size: 15.5px; margin-bottom: 10px; }
  .pigw-rb--live .pigw-rb__note { margin-top: 8px; }
}

/* ---------- 6. signature: Google app picker (dark band) ---------- */
.pigw-pick__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(22px, 3vw, 40px); margin-top: 34px; align-items: start; }
.pigw-pick__chips { display: flex; flex-wrap: wrap; gap: 8px; align-content: flex-start; }
.pigw-pick__chips button { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px 9px 9px; border-radius: 99px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.22); color: #E2EEF6; font: 600 14px/1.25 var(--f-body); cursor: pointer; transition: background .25s, border-color .25s, color .25s, transform .2s; }
.pigw-pick__chips button img { flex: none; width: 20px; height: 20px; padding: 2px; border-radius: 6px; background: #fff; box-sizing: content-box; }
.pigw-pick__chips button:hover { border-color: rgba(255,255,255,.5); }
.pigw-pick__chips button[aria-pressed="true"] { background: #fff; color: #082238; border-color: #fff; }
.pigw-pick__chips button[aria-pressed="true"]::after { content: ""; width: 8px; height: 8px; margin-left: 2px; border-radius: 50%; background: #3FB97A; }
.pigw-pick__chips button:focus-visible { outline: 2px solid #FFB81C; outline-offset: 2px; }
.pigw-pick__out { min-width: 0; padding: 20px; border-radius: 22px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); }
.pigw-lanes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.pigw-lane { min-width: 0; min-height: 150px; padding: 12px 10px; border-radius: 16px; background: rgba(4,18,32,.45); border: 1px dashed rgba(255,255,255,.18); }
.pigw-lane > p { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font: 700 12.5px/1.25 var(--f-body); letter-spacing: .04em; color: #CFE0EE; }
.pigw-lane > p b { display: grid; place-items: center; min-width: 24px; height: 24px; border-radius: 99px; background: var(--lc); color: #082238; font: 800 12px/1 var(--f-body); }
.pigw-lane[data-lane="native"] { --lc: #5FD3F3; } .pigw-lane[data-lane="flow"] { --lc: #3FB97A; } .pigw-lane[data-lane="custom"] { --lc: #FFB81C; } .pigw-lane[data-lane="stay"] { --lc: #B8C6D3; }
.pigw-lane ul { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.pigw-lane li button { display: flex; align-items: center; gap: 6px; width: 100%; padding: 6px 8px; border-radius: 10px; background: #fff; border: 0; border-left: 4px solid var(--lc); color: #082238; font: 600 12.5px/1.25 var(--f-body); text-align: left; cursor: pointer; animation: pigw-drop .45s cubic-bezier(.2,.9,.3,1.3); }
.pigw-lane li button img { flex: none; width: 16px; height: 16px; }
.pigw-lane li button[aria-current="true"] { box-shadow: 0 0 0 2px #FFB81C; }
@keyframes pigw-drop { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
.pigw-pick__detail { margin-top: 14px; padding: 14px 16px; border-radius: 14px; background: rgba(255,255,255,.08); color: #D3E0EC; font-size: 15px; line-height: 1.55; min-height: 48px; }
.pigw-pick__detail b { color: #fff; }
.pigw-pick__warn { display: grid; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.pigw-pick__warn li { padding: 10px 14px; border-radius: 12px; background: rgba(255,184,28,.12); border-left: 3px solid #FFB81C; color: #F3E6C8; font-size: 14px; line-height: 1.5; }
.pigw-pick__send { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 16px; }
.pigw-pick__send span { font-size: 13.5px; color: #9FB3C6; }
.pigw-pick__foot { margin: 22px 0 0; font-size: 13.5px; color: #9FB3C6; max-width: 90ch; }
@media (max-width: 1000px) { .pigw-pick__grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .pigw-lanes { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pigw-lane { min-height: 96px; } .pigw-pick__out { padding: 14px; } }

/* ---------- 7. routes ---------- */
.pigw-zo__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 34px 0 0; padding: 0; list-style: none; counter-reset: r; }
.pigw-route { position: relative; padding: 22px 22px 24px; border-radius: 20px; background: #fff; border: 1px solid #E2E8F0; box-shadow: 0 16px 34px -30px rgba(8,34,56,.6); }
.pigw-route::before { content: ""; position: absolute; left: 22px; right: 22px; top: 0; height: 4px; border-radius: 0 0 4px 4px; background: linear-gradient(90deg, #4285F4, #34A853, #FBBC04, #EA4335); }
.pigw-route--out { background: #F6F9FB; border-style: dashed; }
.pigw-route--out::before { background: #00B2A9; }
.pigw-route__n { font: 800 11.5px/1 var(--f-body); letter-spacing: .12em; text-transform: uppercase; color: #64748B; }
.pigw-route h3 { margin: 10px 0 8px; font: 700 18.5px/1.3 var(--f-display); color: #082238; }
.pigw-route p { margin: 0; font-size: 15px; line-height: 1.6; color: #475569; }
.pigw-route a { color: #0B5FA5; font-weight: 600; }
@media (max-width: 1100px) { .pigw-zo__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- 8. pricing ---------- */
.pigw-price__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 20px; margin-top: 30px; align-items: start; }
.pigw-price__table { width: 100%; border-collapse: separate; border-spacing: 0; border-radius: 18px; overflow: hidden; background: #fff; border: 1px solid #E2E8F0; font-size: 15px; }
.pigw-price__table caption { caption-side: top; display: flex; align-items: center; gap: 8px; padding: 0 0 10px; text-align: left; font: 700 14px/1.4 var(--f-body); color: #082238; }
.pigw-price__table caption img { flex: none; }
.pigw-price__table th, .pigw-price__table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid #EDF2F6; }
.pigw-price__table thead th { background: #F3F7F9; font: 700 12px/1.3 var(--f-body); letter-spacing: .06em; text-transform: uppercase; color: #64748B; }
.pigw-price__table tbody th { font-weight: 600; color: #082238; }
.pigw-price__table td { font: 700 16px/1.3 var(--f-display); color: #082238; }
.pigw-price__table tr:last-child th, .pigw-price__table tr:last-child td { border-bottom: 0; }
.pigw-price__ours { margin: 24px 0 0; padding: 18px 22px; border-radius: 16px; background: #082238; color: #DCE8F1; font-size: 16px; line-height: 1.6; max-width: 90ch; }

/* ---------- mobile ---------- */
@media (max-width: 980px) {
  .pigw-hero .pigw-hero__grid { grid-template-columns: 1fr; }
  .pigw-fit__grid, .pigw-price__grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .pigw-att { grid-template-columns: 1fr; padding: 16px; }
  .pigw-item.is-go { transform: translateY(20px) scale(.95); }
  .pigw-zo__list { grid-template-columns: 1fr; }
  .pigw-fit__grid > div { padding: 20px; }
  .pigw-price__table th, .pigw-price__table td { padding: 10px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .pigw-item, .pigw-rec__rel li, .pigw-lane li button { transition: none; animation: none; }
}
