.zs-social-connect { display: grid; width: min(100%, 880px); gap: 16px; margin: 0 auto; padding: clamp(14px, 3vw, 28px); }
.zs-social-connect__intro { display: flex; align-items: flex-start; gap: 14px; padding: 4px 2px 8px; }
.zs-social-connect__intro > div { min-width: 0; }
.zs-social-connect__intro h1 { margin: 2px 0 6px; color: var(--zs-text); font-size: clamp(23px, 3vw, 30px); letter-spacing: -.035em; }
.zs-social-connect__intro p:last-child { max-width: 660px; margin: 0; color: var(--zs-text-secondary); line-height: 1.55; }
.zs-social-connect__icon { display: grid; width: 48px; height: 48px; flex: none; place-items: center; border: 1px solid var(--zs-hairline); border-radius: 16px; background: var(--zs-surface-2); color: var(--zs-accent); box-shadow: var(--zs-shadow-xs); }
.zs-social-connect__icon .zi { width: 25px; height: 25px; }
.zs-social-connect__form, .zs-social-connect__webhook { display: grid; gap: 14px; padding: clamp(15px, 3vw, 22px); }
.zs-social-connect__field { display: grid; min-width: 0; gap: 7px; color: var(--zs-text); font-size: 13px; font-weight: 650; }
.zs-social-connect__field small, .zs-social-connect__help { margin: 0; color: var(--zs-text-secondary); font-size: 12px; font-weight: 400; line-height: 1.55; }
.zs-social-connect__field .zs-input { width: 100%; min-width: 0; }
.zs-social-connect__label { display: block; margin-bottom: -8px; color: var(--zs-text-secondary); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.zs-social-connect__events { display: block; overflow-wrap: anywhere; padding: 10px 12px; border: 1px solid var(--zs-hairline); border-radius: 11px; background: var(--zs-surface-2); color: var(--zs-text); font: 12px/1.5 var(--zs-font-mono, ui-monospace, monospace); }
.zs-social-connect__copy { display: flex; min-width: 0; gap: 8px; }
.zs-social-connect__copy input { min-width: 0; flex: 1; font-family: var(--zs-font-mono, ui-monospace, monospace); font-size: 11px; }
.zs-social-connect__notice { padding: 11px 14px; border: 1px solid color-mix(in srgb, var(--zs-success, #20bd78) 30%, transparent); border-radius: 12px; background: color-mix(in srgb, var(--zs-success, #20bd78) 9%, var(--zs-surface)); color: var(--zs-text); font-size: 13px; line-height: 1.45; }
.zs-social-connect__notice.is-error { border-color: color-mix(in srgb, var(--zs-danger, #e34f64) 36%, transparent); background: color-mix(in srgb, var(--zs-danger, #e34f64) 8%, var(--zs-surface)); }
.zs-social-connect__connected { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 14px; border: 1px solid var(--zs-hairline); border-radius: 14px; background: var(--zs-surface); color: var(--zs-text); }
.zs-social-connect__connected > .zi { color: var(--zs-success, #20bd78); }
.zs-social-connect__connected > span { flex: 1; min-width: 170px; font-size: 13px; font-weight: 650; }
.zs-social-connect__connected{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:14px}
.zs-social-connect__profile-card{display:grid;min-width:0;gap:10px}
.zs-social-connect__identity{display:flex;align-items:center;gap:13px;min-width:0}
.zs-social-connect__identity>.zs-avatar{width:64px;height:64px;flex:none;border:1px solid var(--zs-hairline);box-shadow:var(--zs-shadow-xs)}
.zs-social-connect__identity-copy{display:grid;min-width:0;gap:3px}
.zs-social-connect__identity-copy h2{overflow:hidden;margin:0;color:var(--zs-text);font-size:17px;line-height:22px;text-overflow:ellipsis;white-space:nowrap}
.zs-social-connect__identity-copy p,.zs-social-connect__identity-copy small{overflow-wrap:anywhere;margin:0;color:var(--zs-text-secondary);font-size:12px;line-height:17px}
.zs-social-connect__connected-label{display:flex;align-items:center;gap:5px;color:var(--zs-success,#20bd78);font-size:10px;font-weight:750;letter-spacing:.07em;text-transform:uppercase}
.zs-social-connect__connected-label .zi{width:13px;height:13px}
.zs-social-connect__profile-details{display:flex;align-items:center;flex-wrap:wrap;gap:6px 12px;color:var(--zs-text-secondary);font-size:12px}
.zs-social-connect__profile-details p{flex-basis:100%;margin:0;line-height:1.45}
.zs-social-connect__profile-details a,.zs-social-connect__profile-link{color:var(--zs-accent-text);font-weight:650;overflow-wrap:anywhere}
.zs-social-connect__profile-link{font-size:12px}
.zs-social-connect__connected-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px}
.zs-social-connect__webhook .zs-card__title, .zs-social-connect__form .zs-card__title { margin: 0; color: var(--zs-text); }
.zs-social-setup-guide { display:grid; gap:15px; padding:clamp(15px,3vw,21px); }
.zs-social-guide__heading { display:flex; align-items:center; gap:11px; min-width:0; }
.zs-social-guide__icon { display:grid; width:40px; height:40px; flex:0 0 40px; place-items:center; border:1px solid color-mix(in srgb,var(--zs-accent) 28%,var(--zs-hairline)); border-radius:13px; background:var(--zs-accent-soft); color:var(--zs-accent-text); }
.zs-social-guide__icon .zi { width:19px; height:19px; }
.zs-social-guide__heading h2 { margin:0; color:var(--zs-text); font-size:16px; letter-spacing:-.02em; }
.zs-social-guide__heading p { margin:4px 0 0; color:var(--zs-text-secondary); font-size:12px; line-height:1.45; }
.zs-social-guide__steps { display:grid; gap:12px; margin:0; padding:0; list-style:none; }
.zs-social-guide__steps li { display:grid; grid-template-columns:29px minmax(0,1fr); align-items:start; gap:10px; min-width:0; }
.zs-social-guide__number { display:grid; width:28px; height:28px; place-items:center; border:1px solid color-mix(in srgb,var(--zs-accent) 24%,var(--zs-hairline)); border-radius:10px; background:color-mix(in srgb,var(--zs-accent-soft) 60%,var(--zs-surface)); color:var(--zs-accent-text); font-size:12px; font-weight:800; }
.zs-social-guide__copy { display:grid; gap:3px; min-width:0; padding-top:1px; }
.zs-social-guide__copy b { color:var(--zs-text); font-size:12px; }
.zs-social-guide__copy p { margin:0; color:var(--zs-text-secondary); font-size:11px; line-height:1.5; }
.zs-social-guide__copy a { justify-self:start; color:var(--zs-accent-text); font-size:11px; font-weight:700; }
.zs-social-guide__note { margin:0; padding:10px 12px; border:1px solid var(--zs-hairline); border-radius:12px; background:var(--zs-surface-2); color:var(--zs-text-secondary); font-size:11px; line-height:1.5; }
.zs-social-setup-guide[data-channel="facebook"] .zs-social-guide__icon { border-color:rgba(8,102,255,.2); background:linear-gradient(145deg,#eef5ff,#fff); color:#0866ff; }
.zs-social-setup-guide[data-channel="instagram"] .zs-social-guide__icon { border-color:rgba(193,53,132,.2); background:linear-gradient(145deg,#fff4e7 0%,#fce8f0 48%,#f2eafa 100%); color:#c13584; }
.zs-social-setup-guide[data-channel="tiktok"] .zs-social-guide__icon { border-color:rgba(37,244,238,.35); background:linear-gradient(145deg,#18181c,#08080a); color:#25f4ee; }
.zs-social-connect[data-channel="fb"] .zs-social-connect__icon { color: #1877f2; }
.zs-social-connect[data-channel="ig"] .zs-social-connect__icon { color: #d94683; }
.zs-social-connect[data-channel="tt"] .zs-social-connect__icon { color: #1a1a1a; }
html[data-theme="dark"] .zs-social-connect[data-channel="tt"] .zs-social-connect__icon { color: #25f4ee; }

/* Give each shared inbox a familiar first-party palette while retaining ZaxSocial's shared controls and navigation. */
.zs-chframe--fb,
.zs-chat-thread[data-channel="facebook"], .zs-chat-thread[data-channel="fb"] {
  --zs-ch-accent: #0866ff; --zs-ch-bg: #fff; --zs-ch-chat-bg: #f0f2f5; --zs-ch-text: #050505; --zs-ch-text-2: #65676b; --zs-ch-unread: #0866ff; --zs-ch-pattern: none;
  --zs-wa-accent: #0866ff; --zs-wa-brand: #0866ff; --zs-wa-bg: #fff; --zs-wa-header-bg: #fff; --zs-wa-header-ios: #fff;
  --zs-wa-header-web: #fff; --zs-wa-title: #050505; --zs-wa-chat-bg: #f0f2f5; --zs-wa-pattern: none;
  --zs-wa-bubble-out: #0084ff; --zs-wa-bubble-in: #e4e6eb; --zs-wa-bubble-shadow: 0 1px 2px rgba(0,0,0,.08);
  --zs-wa-text: #050505; --zs-wa-text-2: #65676b; --zs-wa-meta-in: #65676b; --zs-wa-meta-out: rgba(255,255,255,.78);
  --zs-wa-tick: rgba(255,255,255,.78); --zs-wa-tick-read: #b8ddff; --zs-wa-composer-bg: #f0f2f5; --zs-wa-composer-bar: #fff;
  --zs-wa-divider: rgba(5,5,5,.08); --zs-wa-icon: #0866ff; --zs-wa-green-strong: #0866ff; --zs-wa-unread: #0866ff;
  --zs-wa-date-bg: rgba(255,255,255,.9); --zs-wa-date-text: #65676b; --zs-wa-info-bg: #e7f3ff; --zs-wa-info-text: #34445a;
  --zs-wa-quote-in: rgba(0,0,0,.05); --zs-wa-quote-out: rgba(255,255,255,.14); --zs-wa-reaction-bg: #fff;
  --zs-wa-link: #0866ff; --zs-wa-ai: #0866ff; --zs-wa-wave-played: #0866ff;
}
.zs-chframe--ig,
.zs-chat-thread[data-channel="instagram"], .zs-chat-thread[data-channel="ig"] {
  --zs-ch-accent: #c13584; --zs-ch-bg: #fff; --zs-ch-chat-bg: #fff; --zs-ch-text: #262626; --zs-ch-text-2: #737373; --zs-ch-unread: #c13584; --zs-ch-pattern: none;
  --zs-wa-accent: #c13584; --zs-wa-brand: #c13584; --zs-wa-bg: #fff; --zs-wa-header-bg: #fff; --zs-wa-header-ios: #fff;
  --zs-wa-header-web: #fff; --zs-wa-title: #262626; --zs-wa-chat-bg: #fff; --zs-wa-pattern: none;
  --zs-wa-bubble-out: linear-gradient(135deg,#833ab4 0%,#c13584 54%,#e1306c 100%); --zs-wa-bubble-in: #efefef;
  --zs-wa-bubble-shadow: 0 1px 2px rgba(0,0,0,.07); --zs-wa-text: #262626; --zs-wa-text-2: #737373;
  --zs-wa-meta-in: #737373; --zs-wa-meta-out: rgba(255,255,255,.82); --zs-wa-tick: rgba(255,255,255,.82); --zs-wa-tick-read: #f3d4ff;
  --zs-wa-composer-bg: #fff; --zs-wa-composer-bar: #fff; --zs-wa-divider: rgba(0,0,0,.1); --zs-wa-icon: #c13584;
  --zs-wa-green-strong: #c13584; --zs-wa-unread: #c13584; --zs-wa-date-bg: #f5f5f5; --zs-wa-date-text: #737373;
  --zs-wa-info-bg: #f8eef7; --zs-wa-info-text: #714b6d; --zs-wa-quote-in: rgba(0,0,0,.05); --zs-wa-quote-out: rgba(255,255,255,.16);
  --zs-wa-reaction-bg: #fff; --zs-wa-link: #c13584; --zs-wa-ai: #a23bb4; --zs-wa-wave-played: #c13584;
}
.zs-chframe--tt,
.zs-chat-thread[data-channel="tiktok"], .zs-chat-thread[data-channel="tt"] {
  --zs-ch-accent: #25f4ee; --zs-ch-bg: #111; --zs-ch-chat-bg: #101014; --zs-ch-text: #f5f5f5; --zs-ch-text-2: #a1a1aa; --zs-ch-unread: #fe2c55; --zs-ch-pattern: none;
  --zs-wa-accent: #25f4ee; --zs-wa-brand: #25f4ee; --zs-wa-bg: #111; --zs-wa-header-bg: #111; --zs-wa-header-ios: #101014;
  --zs-wa-header-web: #18181b; --zs-wa-title: #fff; --zs-wa-chat-bg: #101014; --zs-wa-pattern: none;
  --zs-wa-bubble-out: #26383b; --zs-wa-bubble-in: #242428; --zs-wa-bubble-shadow: 0 1px 2px rgba(0,0,0,.25);
  --zs-wa-text: #f5f5f5; --zs-wa-text-2: #a1a1aa; --zs-wa-meta-in: #a1a1aa; --zs-wa-meta-out: #9eecea;
  --zs-wa-tick: #25f4ee; --zs-wa-tick-read: #25f4ee; --zs-wa-composer-bg: #242428; --zs-wa-composer-bar: #111;
  --zs-wa-divider: rgba(255,255,255,.11); --zs-wa-icon: #25f4ee; --zs-wa-green-strong: #fe2c55; --zs-wa-unread: #fe2c55;
  --zs-wa-date-bg: #27272b; --zs-wa-date-text: #ddd; --zs-wa-info-bg: #202024; --zs-wa-info-text: #d4d4dc;
  --zs-wa-quote-in: rgba(255,255,255,.08); --zs-wa-quote-out: rgba(255,255,255,.1); --zs-wa-reaction-bg: #242428;
  --zs-wa-link: #25f4ee; --zs-wa-ai: #25f4ee; --zs-wa-wave-played: #25f4ee;
}
html[data-theme="dark"] .zs-chframe--fb, html[data-theme="dark"] .zs-chat-thread[data-channel="facebook"], html[data-theme="dark"] .zs-chat-thread[data-channel="fb"] {
  --zs-ch-bg: #18191a; --zs-ch-chat-bg: #0f1012; --zs-ch-text: #e4e6eb; --zs-ch-text-2: #b0b3b8; --zs-wa-bg: #18191a; --zs-wa-header-bg: #18191a; --zs-wa-header-ios: #18191a;
  --zs-wa-header-web: #242526; --zs-wa-title: #e4e6eb; --zs-wa-chat-bg: #0f1012; --zs-wa-bubble-in: #242526; --zs-wa-text: #e4e6eb; --zs-wa-text-2: #b0b3b8;
  --zs-wa-meta-in: #b0b3b8; --zs-wa-composer-bg: #3a3b3c; --zs-wa-composer-bar: #18191a; --zs-wa-divider: rgba(255,255,255,.1);
  --zs-wa-date-bg: rgba(36,37,38,.92); --zs-wa-date-text: #b0b3b8; --zs-wa-info-bg: #1b2635; --zs-wa-info-text: #c7d9f3; --zs-wa-reaction-bg: #3a3b3c;
}
html[data-theme="dark"] .zs-chframe--ig, html[data-theme="dark"] .zs-chat-thread[data-channel="instagram"], html[data-theme="dark"] .zs-chat-thread[data-channel="ig"] {
  --zs-ch-bg: #000; --zs-ch-chat-bg: #000; --zs-ch-text: #f5f5f5; --zs-ch-text-2: #a8a8a8; --zs-wa-bg: #000; --zs-wa-header-bg: #000; --zs-wa-header-ios: #000; --zs-wa-header-web: #121212;
  --zs-wa-chat-bg: #000; --zs-wa-title: #f5f5f5; --zs-wa-bubble-in: #262626; --zs-wa-text: #f5f5f5; --zs-wa-text-2: #a8a8a8; --zs-wa-meta-in: #a8a8a8;
  --zs-wa-composer-bg: #262626; --zs-wa-composer-bar: #000; --zs-wa-divider: rgba(255,255,255,.14); --zs-wa-date-bg: #262626;
  --zs-wa-date-text: #d9d9d9; --zs-wa-info-bg: #24192a; --zs-wa-info-text: #e7d3ec; --zs-wa-reaction-bg: #262626;
}
html[data-theme="light"] .zs-chframe--tt, html[data-theme="light"] .zs-chat-thread[data-channel="tiktok"], html[data-theme="light"] .zs-chat-thread[data-channel="tt"] {
  --zs-ch-bg: #fff; --zs-ch-chat-bg: #f4f6f8; --zs-ch-text: #161823; --zs-ch-text-2: #727681; --zs-wa-bg: #fff; --zs-wa-header-bg: #fff; --zs-wa-header-ios: #fff; --zs-wa-header-web: #f4f6f8;
  --zs-wa-title: #111; --zs-wa-chat-bg: #f4f6f8; --zs-wa-bubble-in: #fff; --zs-wa-bubble-out: #dff7f5; --zs-wa-text: #161823;
  --zs-wa-text-2: #727681; --zs-wa-meta-in: #727681; --zs-wa-meta-out: #59666c; --zs-wa-tick: #25b9b3; --zs-wa-tick-read: #25b9b3;
  --zs-wa-composer-bg: #f1f1f2; --zs-wa-composer-bar: #fff; --zs-wa-divider: rgba(22,24,35,.1); --zs-wa-icon: #161823;
  --zs-wa-date-bg: #fff; --zs-wa-date-text: #727681; --zs-wa-info-bg: #e8faf8; --zs-wa-info-text: #285b58; --zs-wa-reaction-bg: #fff;
  --zs-wa-unread: #fe2c55;
}
.zs-social-connect[data-channel="fb"] .zs-social-connect__icon { border-color: rgba(8,102,255,.18); background: linear-gradient(145deg,#eef5ff,#fff); color: #0866ff; }
.zs-social-connect[data-channel="ig"] .zs-social-connect__icon { border-color: rgba(193,53,132,.2); background: linear-gradient(145deg,#fff4e7 0%,#fce8f0 48%,#f2eafa 100%); color: #c13584; }
.zs-social-connect[data-channel="tt"] .zs-social-connect__icon { border-color: rgba(37,244,238,.35); background: linear-gradient(145deg,#18181c,#08080a); color: #25f4ee; box-shadow: 3px 3px 0 rgba(254,44,85,.18),var(--zs-shadow-xs); }
.zs-chframe--fb .zs-chhead { color: var(--zs-wa-text); }
.zs-chframe--ig .zs-chhead { color: var(--zs-wa-text); }
.zs-chframe--tt .zs-chhead { color: var(--zs-wa-text); }
.zs-chnav--fb { --chn-on: #0866ff; --chn-on-label: #0866ff; --chn-badge-bg: #0866ff; --chn-badge-fg: #fff; --chn-ind: rgba(8,102,255,.12); }
.zs-chnav--ig { --chn-on: #c13584; --chn-on-label: #c13584; --chn-badge-bg: #c13584; --chn-badge-fg: #fff; --chn-ind: rgba(193,53,132,.12); }
.zs-chnav--tt { --chn-on: #fe2c55; --chn-on-label: #fe2c55; --chn-badge-bg: #fe2c55; --chn-badge-fg: #fff; --chn-ind: rgba(37,244,238,.14); }
.zs-chnav--fb { --chn-off: #687078; --chn-off-label: #687078; }
.zs-chnav--ig { --chn-off: #737373; --chn-off-label: #737373; }
.zs-chnav--tt { --chn-off: #a1a1aa; --chn-off-label: #a1a1aa; }
.zs-chrail--fb { --chr-bg: #fff; --chr-line: rgba(5,5,5,.08); --chr-icon: #65676b; --chr-active: #0866ff; --chr-active-bg: rgba(8,102,255,.1); --chn-badge-bg: #0866ff; --chn-badge-fg: #fff; }
.zs-chrail--ig { --chr-bg: #fff; --chr-line: rgba(0,0,0,.1); --chr-icon: #737373; --chr-active: #c13584; --chr-active-bg: rgba(193,53,132,.1); --chn-badge-bg: #c13584; --chn-badge-fg: #fff; }
.zs-chrail--tt { --chr-bg: #111; --chr-line: rgba(255,255,255,.11); --chr-icon: #a1a1aa; --chr-active: #25f4ee; --chr-active-bg: rgba(37,244,238,.12); --chn-badge-bg: #fe2c55; --chn-badge-fg: #fff; }
html[data-theme="dark"] .zs-chrail--fb { --chr-bg: #18191a; --chr-line: rgba(255,255,255,.1); --chr-icon: #b0b3b8; --chr-active: #0866ff; --chr-active-bg: rgba(8,102,255,.16); }
html[data-theme="dark"] .zs-chrail--ig { --chr-bg: #000; --chr-line: rgba(255,255,255,.14); --chr-icon: #a8a8a8; --chr-active: #c13584; --chr-active-bg: rgba(193,53,132,.16); }
html[data-theme="light"] .zs-chrail--tt { --chr-bg: #fff; --chr-line: rgba(22,24,35,.1); --chr-icon: #727681; --chr-active: #fe2c55; --chr-active-bg: rgba(254,44,85,.1); }
.zs-chat-thread[data-channel="facebook"], .zs-chat-thread[data-channel="fb"] { --zs-wa-pattern: none; }
.zs-chat-thread[data-channel="instagram"], .zs-chat-thread[data-channel="ig"] { --zs-wa-pattern: none; }
.zs-chat-thread[data-channel="tiktok"], .zs-chat-thread[data-channel="tt"] { --zs-wa-pattern: none; }
.zs-chat-thread[data-channel="facebook"] .zs-wa-send, .zs-chat-thread[data-channel="fb"] .zs-wa-send { background: #0866ff; }
.zs-chat-thread[data-channel="instagram"] .zs-wa-send, .zs-chat-thread[data-channel="ig"] .zs-wa-send { background: linear-gradient(135deg,#833ab4,#c13584 54%,#e1306c); }
.zs-chat-thread[data-channel="tiktok"] .zs-wa-send, .zs-chat-thread[data-channel="tt"] .zs-wa-send { background: #fe2c55; color: #fff; box-shadow: 2px 2px 0 rgba(37,244,238,.36); }
.zs-chat-thread[data-channel="facebook"] .zs-wa-bubble, .zs-chat-thread[data-channel="fb"] .zs-wa-bubble,
.zs-chat-thread[data-channel="instagram"] .zs-wa-bubble, .zs-chat-thread[data-channel="ig"] .zs-wa-bubble,
.zs-chat-thread[data-channel="tiktok"] .zs-wa-bubble, .zs-chat-thread[data-channel="tt"] .zs-wa-bubble { border-radius: 18px; }
.zs-chat-thread[data-channel="facebook"] .zs-wa-msg.is-first .zs-wa-bubble::before, .zs-chat-thread[data-channel="fb"] .zs-wa-msg.is-first .zs-wa-bubble::before,
.zs-chat-thread[data-channel="instagram"] .zs-wa-msg.is-first .zs-wa-bubble::before, .zs-chat-thread[data-channel="ig"] .zs-wa-msg.is-first .zs-wa-bubble::before,
.zs-chat-thread[data-channel="tiktok"] .zs-wa-msg.is-first .zs-wa-bubble::before, .zs-chat-thread[data-channel="tt"] .zs-wa-msg.is-first .zs-wa-bubble::before { display: none; }
html[data-theme="light"] .zs-chat-thread[data-channel="tiktok"] .zs-wa-send, html[data-theme="light"] .zs-chat-thread[data-channel="tt"] .zs-wa-send { color: #fff; }
@media (prefers-reduced-motion: no-preference) {
  .zs-social-connect__icon { transition: transform .2s ease, box-shadow .2s ease; }
  .zs-social-connect__icon:hover { transform: translateY(-2px); box-shadow: var(--zs-shadow-md); }
}
@media (max-width: 520px) {
  .zs-social-connect { padding: 12px; }
  .zs-social-connect__connected { grid-template-columns: minmax(0,1fr); align-items: stretch; }
  .zs-social-connect__connected-actions { justify-content: stretch; }
  .zs-social-connect__connected-actions > * { flex: 1; }
  .zs-social-connect__identity>.zs-avatar { width: 56px; height: 56px; }
  .zs-social-connect__copy { align-items: stretch; flex-direction: column; }
}

/* On phones, let social connection/settings surfaces span the channel canvas edge to edge. */
@media (max-width: 767px) {
  #zs-app[data-layout="channel"] .zs-screen:has(> .zs-chframe--social-connect) {
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    margin: 0;
    padding-inline: 0;
  }
  #zs-app[data-layout="channel"] .zs-screen > .zs-chframe--social-connect,
  .zs-chframe--social-connect {
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    margin: 0;
  }
  .zs-chframe--social-connect > .zs-chframe__body { padding-inline: 0; }
  .zs-chframe--social-connect .zs-social-connect {
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 12px 0 calc(var(--zs-safe-bottom) + 24px);
  }
  .zs-chframe--social-connect .zs-social-connect__intro { padding-inline: 16px; }
  .zs-chframe--social-connect .zs-social-connect__connected,
  .zs-chframe--social-connect .zs-social-connect__form,
  .zs-chframe--social-connect .zs-social-connect__webhook {
    box-sizing: border-box;
    width: 100%;
    margin-inline: 0;
    border-inline: 0;
    border-radius: 0;
  }
}

/* Keep the back arrow and transparent home mark comfortably visible in mobile channel headers. */
html[data-platform="ios"] .zs-chhead__back--home {
  box-sizing: border-box;
  min-width: 58px;
  gap: 4px;
  padding-inline: 4px;
  overflow: visible;
}
html[data-platform="ios"] .zs-chhead__back--home > .zi {
  flex: none;
  width: 26px;
  height: 26px;
  margin: 0;
}
html[data-platform="ios"] .zs-chhead__back--home .zs-chhead__mark {
  box-sizing: border-box;
  flex: none;
  width: 26px;
  height: 26px;
  margin: 0;
  overflow: visible;
}
html[data-platform="ios"] .zs-chhead__back--home .zs-chhead__mark .zi {
  width: 17px;
  height: 17px;
  overflow: visible;
}

/* Keep social account setup usable in the fixed-height desktop channel shell. The native channel
   heading stays outside the scrolling region while credentials and webhook settings scroll below it. */
@media (min-width: 768px) {
  #zs-app[data-layout="channel"] .zs-screen:has(> .zs-chframe--social-connect) {
    display: flex;
    min-height: 0;
    height: 100dvh;
    flex-direction: column;
    overflow: hidden;
  }
  #zs-app[data-layout="channel"] .zs-screen > .zs-chframe--social-connect {
    min-height: 0;
    flex: 1 1 0%;
    overflow: hidden;
  }
  .zs-chframe--social-connect > .zs-chframe__body {
    display: flex;
    flex: 1 1 0%;
    flex-direction: column;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
  }
  .zs-chframe--social-connect .zs-social-connect {
    box-sizing: border-box;
    width: min(100%, 960px);
    flex: 0 0 auto;
  }
}
