/* ZaxSocial · css/app.css — app home cards and install-sheet layout. Owner: U4. */
.zs-app-home__channels { margin: 0 0 18px; }
.zs-app-home__channels .zs-app-home__chans { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.zs-app-home__channels .zs-card { min-width: 0; }
.zs-app-home__installbody { min-width: 0; }
.zs-app-home__installtitle { font-weight: 700; }
.zs-app-home__installtext { margin-top: 3px; color: var(--zs-text-secondary); font-size: 13px; }
.zs-app-install-sheet .zs-sheet__body { padding-top: 10px; }
.zs-app-install-sheet .zs-sheet__content { max-width: 720px; margin-inline: auto; }
.zs-app-home { width: min(100% - 32px, 1120px); margin: 0 auto; padding: 20px 0 calc(var(--zs-safe-bottom) + 24px); }
.zs-app-home__hello { margin: 0 0 24px; }
.zs-app-home__date { color: var(--zs-text-secondary); font-size: 13px; font-weight: 600; }
.zs-app-home__title { margin-top: 5px; font-size: clamp(28px,5vw,40px); line-height: 1.12; letter-spacing: -.04em; font-weight: 750; }
.zs-app-home__sub { margin-top: 5px; color: var(--zs-text-secondary); font-size: 15px; }
.zs-app-home__slot { margin: 0 0 18px; }
.zs-app-home__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 2px 10px; }
.zs-app-home__h2 { font-size: 17px; font-weight: 700; letter-spacing: -.02em; }
.zs-app-home__chans { display: grid; grid-template-columns: minmax(0,1fr); gap: 10px; }
.zs-app-chcard { display: grid; gap: 10px; min-width: 0; max-width: 100%; overflow: hidden; padding: 15px; border: 1px solid var(--zs-hairline); border-radius: 20px; background: var(--zs-surface); box-shadow: var(--zs-shadow-xs),var(--zs-ring-inset); transition: transform var(--zs-dur-fast) var(--zs-ease-standard),box-shadow var(--zs-dur-fast); }
.zs-app-chcard:active { transform: scale(.985); }
.zs-app-chcard__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.zs-app-chcard__glyph { width: 38px; height: 38px; border-radius: 13px; }
.zs-app-chcard__glyph .zi { width: 19px; height: 19px; }
.zs-app-chcard__title { font-size: 16px; font-weight: 700; }
.zs-app-chcard__id { min-width: 0; max-width: 100%; overflow: hidden; color: var(--zs-text-secondary); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.zs-app-chcard__id--teach { color: var(--zs-text-tertiary); }
.zs-app-chcard__status { display: inline-flex; align-items: center; gap: 6px; color: var(--zs-success-ink); font-size: 11px; font-weight: 650; }
.zs-app-chcard__status i { width: 7px; height: 7px; border-radius: 50%; background: var(--zs-success); }
.zs-app-chcard__status--off { color: var(--zs-text-tertiary); }
.zs-app-chcard__status--off i { background: var(--zs-text-tertiary); }
.zs-app-chcard__status--warn { color: var(--zs-warning-ink); }
.zs-app-chcard__status--warn i { background: var(--zs-warning); }
.zs-app-chcard__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; max-width: 100%; min-height: 36px; margin-top: 2px; padding-top: 8px; border-top: 1px solid var(--zs-hairline); color: var(--zs-text-secondary); font-size: 12px; }
.zs-app-chcard__badge { display: flex; align-items: baseline; gap: 5px; color: var(--zs-text); font-size: 12px; }
.zs-app-chcard__badge b { font-size: 16px; }
.zs-app-chcard__muted { display: block; flex: 1 1 0%; min-width: 0; max-width: 100%; overflow: hidden; color: var(--zs-text-tertiary); text-overflow: ellipsis; white-space: nowrap; }
.zs-app-chcard__muted > .zs-truncate { display: block; min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zs-app-chcard__go { flex: 0 0 auto; color: var(--zs-text-tertiary); }
.zs-app-home__quick { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; }
.zs-app-home__qa { display: grid; justify-items: center; gap: 7px; min-width: 0; padding: 10px 4px; border-radius: 16px; color: var(--zs-text-secondary); text-align: center; font-size: 11px; font-weight: 600; }
.zs-app-home__qa:active { background: var(--zs-overlay-press); }
.zs-app-home__qaicon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 15px; background: var(--zs-accent-soft); color: var(--zs-accent-text); }
.zs-app-home__qaicon--blue { background: var(--zs-info-soft); color: var(--zs-info-ink); }
.zs-app-home__qaicon--green { background: var(--zs-success-soft); color: var(--zs-success-ink); }
.zs-app-home__qaicon--orange { background: var(--zs-warning-soft); color: var(--zs-warning-ink); }
.zs-app-home__qaicon .zi { width: 21px; height: 21px; }
.zs-app-home__install { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 12px; }
.zs-app-home__installacts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.zs-app-home__checklist { min-width: 0; }
.zs-app-home__demo { margin: 10px 0 0; }
.zs-ai-token-card { position: relative; display: grid; gap: 15px; overflow: hidden; padding: clamp(16px,3vw,23px); border: 1px solid color-mix(in srgb,var(--zs-accent) 24%,var(--zs-border)); border-radius: 22px; background: radial-gradient(ellipse at 94% 0%,color-mix(in srgb,var(--zs-accent) 15%,transparent),transparent 43%),linear-gradient(135deg,var(--zs-surface),color-mix(in srgb,var(--zs-accent-soft) 42%,var(--zs-surface))); box-shadow: var(--zs-shadow-sm),var(--zs-ring-inset); }
.zs-ai-token-card__top { display: flex; align-items: center; gap: 12px; min-width: 0; }
.zs-ai-token-card__icon { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; border: 1px solid color-mix(in srgb,var(--zs-accent) 24%,var(--zs-hairline)); border-radius: 15px; background: var(--zs-accent-soft); color: var(--zs-accent-text); }
.zs-ai-token-card__icon .zi { width: 21px; height: 21px; }
.zs-ai-token-card__heading { flex: 1; min-width: 0; }
.zs-ai-token-card__heading h2 { margin: 0; font-size: 16px; font-weight: 750; letter-spacing: -.02em; }
.zs-ai-token-card__heading p { margin: 4px 0 0; color: var(--zs-text-secondary); font-size: 12px; line-height: 1.4; }
.zs-ai-token-card__buy { display: grid; place-items: center; flex: 0 0 40px; width: 40px; height: 40px; border: 1px solid var(--zs-hairline); border-radius: 14px; background: var(--zs-surface); color: var(--zs-accent-text); box-shadow: var(--zs-shadow-xs); transition: transform var(--zs-dur-fast) var(--zs-ease-standard),background var(--zs-dur-fast); }
.zs-ai-token-card__actions { display:flex; flex:0 0 auto; align-items:center; gap:7px; }
.zs-ai-token-card__visibility { display:grid; place-items:center; flex:0 0 40px; width:40px; height:40px; padding:0; border:1px solid var(--zs-hairline); border-radius:14px; background:var(--zs-surface); color:var(--zs-text-secondary); box-shadow:var(--zs-shadow-xs); cursor:pointer; transition:transform var(--zs-dur-fast) var(--zs-ease-standard),background var(--zs-dur-fast),color var(--zs-dur-fast); }
.zs-ai-token-card__visibility:hover { transform:translateY(-2px); background:var(--zs-accent-soft); color:var(--zs-accent-text); }
.zs-ai-token-card__visibility .zi { width:18px; height:18px; }
.zs-ai-token-card__visibility:focus-visible { outline:3px solid var(--zs-focus); outline-offset:2px; }
.zs-ai-token-card__buy:hover { transform: translateY(-2px); background: var(--zs-accent-soft); }
.zs-ai-token-card__value { display: grid; grid-template-columns: auto 1fr; align-items: baseline; column-gap: 8px; }
.zs-ai-token-card__value strong { grid-row: span 2; font-size: clamp(30px,6vw,42px); line-height: 1; letter-spacing: -.055em; font-variant-numeric: tabular-nums; }
.zs-ai-token-card__value span { color: var(--zs-text-secondary); font-size: 13px; font-weight: 650; }
.zs-ai-token-card__value small { color: var(--zs-text-tertiary); font-size: 11px; }
.zs-ai-token-card__track { height: 9px; overflow: hidden; border: 1px solid var(--zs-hairline); border-radius: 999px; background: var(--zs-surface-2); }
.zs-ai-token-card__fill { display: block; width: 0%; height: 100%; border-radius: inherit; background: linear-gradient(90deg,var(--zs-accent),#8c65ff 55%,#35c6ff); box-shadow: 0 0 18px color-mix(in srgb,var(--zs-accent) 40%,transparent); -webkit-transition: width 850ms cubic-bezier(.2,.75,.2,1); transition: width 850ms cubic-bezier(.2,.75,.2,1); }
.zs-ai-token-card__fill.is-loaded { width: var(--zs-token-progress,0%); }
.zs-ai-token-card__foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 14px; color: var(--zs-text-tertiary); font-size: 11px; }
.zs-ai-token-card__foot a { color: var(--zs-accent-text); font-size: 12px; font-weight: 700; white-space: nowrap; }
.zs-ai-token-card.is-unconfigured .zs-ai-token-card__track { opacity: .45; }
.zs-ai-token-card.is-balance-hidden .zs-ai-token-card__fill { visibility:hidden; }
@media (prefers-reduced-motion: reduce) { .zs-ai-token-card__fill,.zs-ai-token-card__buy,.zs-ai-token-card__visibility { -webkit-transition: none; transition: none; } }
.zs-app-acct { width: 100%; max-width: 440px; max-height: min(90vh,820px); overflow: auto; }
.zs-app-acct__body { display: grid; gap: 12px; padding: 4px 0 10px; }
.zs-app-acct__top { padding: 0 16px; }
.zs-app-acct__head { display: flex; align-items: center; width: 100%; gap: 12px; padding: 8px 0 14px; text-align: left; }
.zs-app-acct__who { display: grid; flex: 1; min-width: 0; gap: 3px; }
.zs-app-acct__name { font-weight: 700; }
.zs-app-acct__email { color: var(--zs-text-secondary); font-size: 12px; }
.zs-app-acct__plan { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.zs-app-acct__health { display: inline-flex; align-items: center; gap: 5px; color: var(--zs-success-ink); font-size: 11px; }
.zs-app-acct__health i { width: 6px; height: 6px; border-radius: 50%; background: var(--zs-success); }
.zs-app-acct__health.is-warn { color: var(--zs-warning-ink); }
.zs-app-acct__health.is-danger { color: var(--zs-danger-ink); }
.zs-app-acct__chev { color: var(--zs-text-tertiary); }
.zs-app-acct__tiles { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; padding: 0 16px 4px; }
.zs-app-acct__tile { display: grid; justify-items: center; gap: 5px; min-width: 0; padding: 10px 4px; border-radius: 14px; background: var(--zs-surface-2); font-size: 11px; font-weight: 600; text-align: center; }
.zs-app-acct__tile .zi { color: var(--zs-accent-text); }
.zs-app-acct__tile small { color: var(--zs-text-tertiary); font-size: 10px; }
.zs-app-acct__seg { margin: 8px 0; }
.zs-app-acct__foot { display: flex; justify-content: center; gap: 5px; padding: 4px 12px 0; color: var(--zs-text-tertiary); font-size: 11px; }
.zs-app-banners__more { justify-self: start; margin: -2px 0 2px 8px; padding: 3px 8px; border-radius: 9px; color: var(--zs-text-secondary); font-size: 12px; font-weight: 650; }
.zs-app-statusstrip { display: none; }
.zs-app-kbproxy { position: fixed; z-index: -1; left: 0; bottom: 0; width: 1px; height: 1px; opacity: .01; }
.zs-app-theme { overflow: hidden; }
.zs-app-theme__sun,.zs-app-theme__moon { position: absolute; display: grid; place-items: center; transition: transform var(--zs-dur-base) var(--zs-ease-emphasized),opacity var(--zs-dur-fast); }
.zs-app-theme__sun { transform: translateY(0) rotate(0); }
.zs-app-theme__moon { transform: translateY(140%) rotate(-25deg); opacity: 0; }
.zs-app-theme.is-dark .zs-app-theme__sun { transform: translateY(-140%) rotate(25deg); opacity: 0; }
.zs-app-theme.is-dark .zs-app-theme__moon { transform: translateY(0) rotate(0); opacity: 1; }
.zs-app-start { position: relative; display: grid; grid-template-columns: 1fr; align-content: start; justify-items: center; min-height: 100dvh; overflow: hidden; padding: max(20px,var(--zs-safe-top)) 22px calc(28px + var(--zs-safe-bottom)); background: radial-gradient(ellipse at 50% 34%,var(--zs-accent-soft) 0%,var(--zs-bg) 60%); }
.zs-app-start__mesh { position: absolute; inset: 0; opacity: .4; background-image: radial-gradient(var(--zs-border) 1px,transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(to bottom,black,transparent 75%); pointer-events: none; }
.zs-app-start__brand { z-index: 1; display: flex; align-items: center; justify-content: center; gap: 9px; font-size: 18px; }
.zs-app-start__hero { position: relative; width: min(100%,460px); height: min(45vh,390px); min-height: 270px; margin: 4px auto 0; }
.zs-app-start__ring,.zs-app-start__glow,.zs-app-start__spark,.zs-app-start__orb,.zs-app-start__float { position: absolute; }
.zs-app-start__ring { left: 50%; top: 49%; width: 66%; aspect-ratio: 1; border: 1px solid var(--zs-accent-soft-2); border-radius: 50%; transform: translate(-50%,-50%) rotate(-25deg) scaleY(.55); }
.zs-app-start__ring--2 { width: 84%; transform: translate(-50%,-50%) rotate(35deg) scaleY(.5); border-color: var(--zs-info-soft); }
.zs-app-start__ring--1 { border-color: var(--zs-accent-soft-2); }
.zs-app-start__ring--3 { width: 48%; transform: translate(-50%,-50%) rotate(80deg) scaleY(.7); border-color: var(--zs-success-soft); }
.zs-app-start__glow { left: 50%; top: 48%; width: 56%; aspect-ratio: 1; border-radius: 50%; background: var(--zs-accent); filter: blur(58px); opacity: .14; transform: translate(-50%,-50%); }
.zs-app-start__core { position: absolute; z-index: 2; left: 50%; top: 48%; width: 86px; height: 86px; border-radius: 28px; transform: translate(-50%,-50%); box-shadow: 0 16px 42px -14px var(--zs-lit-6b4eff-50); }
.zs-app-start__orb { left: var(--x,50%); top: var(--y,50%); display: grid; place-items: center; width: calc(54px * var(--s,1)); height: calc(54px * var(--s,1)); border: 1px solid var(--zs-hairline); border-radius: 19px; background: var(--zs-surface); box-shadow: var(--zs-shadow-md); transform: translate(-50%,-50%); }
.zs-app-start__orb--wa { left: 22%; top: 35%; color: var(--zs-success-ink); }
.zs-app-start__orb--tg { left: 80%; top: 31%; color: var(--zs-info-ink); }
.zs-app-start__orb--av { width: 42px; height: 42px; border-radius: 50%; }
.zs-app-start__spark { display: grid; place-items: center; color: var(--zs-warning); }
.zs-app-start__spark--1 { left: 26%; top: 14%; }
.zs-app-start__spark--2 { right: 20%; bottom: 22%; color: var(--zs-accent); }
.zs-app-start__float { display: flex; align-items: center; gap: 9px; max-width: 230px; padding: 9px 11px; border: 1px solid var(--zs-hairline); border-radius: 15px; background: var(--zs-surface); box-shadow: var(--zs-shadow-md); font-size: 10px; line-height: 14px; }
.zs-app-start__float--in { left: 2%; top: 69%; }
.zs-app-start__float--ai { right: 0; top: 52%; }
.zs-app-start__float b,.zs-app-start__float span { display: block; }
.zs-app-start__float small { color: var(--zs-text-tertiary); font-weight: 500; }
.zs-app-start__float--ai { max-width: 190px; }
.zs-app-start__float .zs-app-start__aiicon { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 10px; background: var(--zs-accent-soft); color: var(--zs-accent-text); }
.zs-app-start__copy { z-index: 1; width: min(100%,460px); text-align: center; }
.zs-app-start__title { font-size: clamp(32px,8vw,48px); line-height: 1.05; letter-spacing: -.05em; font-weight: 780; }
.zs-app-start__sub { max-width: 390px; margin: 12px auto 22px; color: var(--zs-text-secondary); font-size: 16px; line-height: 24px; }
.zs-app-start__actions { display: grid; gap: 10px; }
.zs-app-start__links { margin-top: 18px; color: var(--zs-text-tertiary); font-size: 12px; }
.zs-app-state { display: grid; min-height: 65vh; place-items: center; padding: 24px; }
.zs-app-state--maint { min-height: 100dvh; align-content: center; gap: 20px; }
.zs-app-state__brand { margin: 0 auto; }
.zs-app-install-screen { width: min(100% - 32px,760px); margin: 0 auto; padding: 24px 0 48px; }
.zs-app-install-screen__title { margin: 0 0 5px; font-size: 28px; letter-spacing: -.03em; }
.zs-app-install-screen__sub { margin: 0 0 18px; color: var(--zs-text-secondary); }
.zs-app-install { display: grid; gap: 18px; }
.zs-app-install__steps { display: grid; gap: 10px; padding: 0; list-style: none; }
.zs-app-install__step { display: grid; grid-template-columns: 64px 1fr; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--zs-hairline); border-radius: 16px; background: var(--zs-surface); }
.zs-app-install__art { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 15px; background: var(--zs-accent-soft); }
.zs-app-install__img { width: 48px; height: 44px; object-fit: contain; }
.zs-app-install__fallback { display: grid; place-items: center; width: 48px; height: 44px; border-radius: 12px; background: var(--zs-accent-soft); color: var(--zs-accent-text); }
.zs-app-install__fallback .zi { width: 28px; height: 28px; }
.zs-app-install__body { display: grid; grid-template-columns: 24px 1fr; gap: 4px 8px; }
.zs-app-install__num { grid-row: span 2; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--zs-accent-soft); color: var(--zs-accent-text); font-size: 12px; font-weight: 700; }
.zs-app-install__text { color: var(--zs-text-secondary); font-size: 13px; line-height: 18px; }
.zs-app-install__cta,.zs-app-install__note { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--zs-hairline); border-radius: 18px; background: var(--zs-surface); }
.zs-app-install__cta .zs-btn { grid-column: 1/-1; }
.zs-app-install__noteacts { grid-column: 1/-1; display: flex; flex-wrap: wrap; gap: 8px; }
.zs-app-install__panel { min-width: 0; }
.zs-app-install__more { padding: 12px; border-radius: 14px; background: var(--zs-surface-2); }
.zs-app-install__more p { margin-top: 8px; color: var(--zs-text-secondary); }
@media (min-width: 760px) {
  .zs-app-home { width: min(100% - 48px,1120px); padding-top: 30px; }
  .zs-app-home__channels .zs-app-home__chans { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
  .zs-app-start { grid-template-columns: minmax(0,1fr) minmax(380px,520px); align-content: center; justify-items: stretch; gap: 0 28px; padding-inline: max(6vw,36px); }
  .zs-app-start__brand { grid-column: 1/-1; justify-content: flex-start; margin-bottom: 10px; }
  .zs-app-start__hero { grid-column: 2; grid-row: 2; width: 100%; height: min(70vh,540px); max-width: 540px; }
  .zs-app-start__copy { grid-column: 1; grid-row: 2; justify-self: end; align-self: center; text-align: left; }
  .zs-app-start__sub { margin-inline: 0; }
  .zs-app-start__actions { grid-template-columns: 1fr 1fr; }
  .zs-app-start__links { text-align: left; }
  .zs-app-start__float--in { left: -3%; }
  .zs-app-start__float--ai { right: -3%; }
}
@media (display-mode: standalone) and (max-width: 767px) {
  .zs-app-statusstrip { position: fixed; z-index: var(--zs-z-topbar); top: 0; inset-inline: 0; display: block; height: var(--zs-safe-top); background: var(--zs-surface); }
  html[data-channel="wa"][data-platform="ios"] .zs-app-statusstrip { background: var(--zs-wa-header-ios, var(--zs-wa-bg, var(--zs-surface))); }
  html[data-channel="wa"][data-platform="android"] .zs-app-statusstrip { background: var(--zs-wa-header-bg, var(--zs-wa-bg, var(--zs-surface))); }
}
@media (min-width: 768px) { .zs-app-home__channels .zs-app-home__chans { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; } }


/* ---------------------------------------------------------------- channel layout (UI-CHANGES §A, §B)
   Channel screens remain full-bleed; the phone navigation floats as a rounded capsule above the safe area. */
#zs-app[data-layout="channel"] { min-height: 100dvh; max-width: none; margin: 0; padding-inline: 0; border-radius: 0; overflow-x: clip; }
#zs-app[data-layout="channel"] > .zs-view { max-width: none; margin: 0; padding-inline: 0; border-radius: 0; }
html[data-channel], html[data-channel] body { overflow-x: clip; }
#zs-app { --zs-chnav-h: 64px; --zs-chnav-space: 0px; --zs-chrail-w: 0px; }
#zs-app.has-chnav { --zs-chnav-space: calc(var(--zs-chnav-h) + 28px + var(--zs-safe-bottom)); }
#zs-app.has-chnav > .zs-view { padding-bottom: var(--zs-chnav-space); }
html.is-kb-open .zs-chnav, html.is-channel-thread .zs-chnav, html.is-wa-chat-open .zs-chnav, html.is-demo-chat-open .zs-chnav { display: none !important; }
html.is-kb-open #zs-app.has-chnav, html.is-channel-thread #zs-app.has-chnav, html.is-wa-chat-open #zs-app.has-chnav, html.is-demo-chat-open #zs-app.has-chnav { --zs-chnav-space: 0px; }
html.is-channel-thread #zs-tabbar, html.is-wa-chat-open #zs-tabbar, html.is-demo-chat-open #zs-tabbar, html.is-wa-chat-open .zs-wa-nav, html.is-wa-chat-open .zs-wa-tabbar, html.is-demo-chat-open .zs-wa-nav, html.is-demo-chat-open .zs-wa-tabbar { display: none !important; }

/* Channel bottom bar (phones): floating capsule shared by WhatsApp and Telegram, with channel-specific accents. */
.zs-chnav { --chn-bg: var(--zs-wa-header-ios); --chn-line: var(--zs-wa-divider); --chn-on: var(--zs-wa-accent); --chn-on-label: var(--zs-wa-accent); --chn-off: var(--zs-wa-text);
  --chn-off-label: var(--zs-wa-text-2); --chn-ind: var(--zs-wa-nav-indicator); --chn-badge-bg: var(--zs-wa-unread); --chn-badge-fg: var(--zs-wa-on-unread); --chn-ripple: var(--zs-overlay-press);
  position: fixed; z-index: var(--zs-z-tabbar); left: 14px; right: 14px; bottom: calc(var(--zs-vv-bottom-gap,0px) + max(12px,calc(var(--zs-safe-bottom) - 12px))); display: flex; align-items: stretch; box-sizing: border-box;
  width: auto; max-width: 520px; height: 64px; margin: 0 auto; padding: 5px; border-radius: 34px;
  background: var(--zs-glass); box-shadow: 0 0 0 1px var(--zs-hairline),0 10px 30px -8px var(--zs-lit-101028-20),inset 0 1px 0 var(--zs-glass-border);
  -webkit-backdrop-filter: saturate(180%) blur(24px); backdrop-filter: saturate(180%) blur(24px);
  font-family: var(--zs-font); -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
[data-theme="dark"] .zs-chnav--wa { --chn-on: var(--zs-wa-green-strong); --chn-on-label: var(--zs-wa-green-strong); }
.zs-chnav--wa.zs-chnav--android { --chn-bg: var(--zs-wa-bg); --chn-on: var(--zs-wa-text); --chn-on-label: var(--zs-wa-text); --chn-off: var(--zs-wa-icon); --chn-off-label: var(--zs-wa-text-2); }
.zs-chnav--tg { --chn-bg: var(--zs-tg-header-ios); --chn-line: var(--zs-tg-divider); --chn-on: var(--zs-tg-accent-ios); --chn-on-label: var(--zs-tg-accent-ios); --chn-off: var(--zs-tg-icon);
  --chn-off-label: var(--zs-tg-icon); --chn-badge-bg: var(--zs-danger); --chn-badge-fg: var(--zs-lit-ffffff); --chn-ind: color-mix(in srgb, var(--zs-tg-accent) 16%, transparent); }
.zs-chnav--tg.zs-chnav--android { --chn-bg: var(--zs-tg-bg); --chn-on: var(--zs-tg-accent); --chn-on-label: var(--zs-tg-text); --chn-badge-bg: var(--zs-tg-unread); --chn-badge-fg: var(--zs-tg-on-unread); }
.zs-chnav--ios, .zs-chnav--android { --chn-bg: var(--zs-glass); }
.zs-chnav--ios { -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); }
.zs-chnav__item { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; align-items: center; min-width: 0; color: var(--chn-off-label); text-decoration: none;
  transition: color 160ms var(--zs-ease-standard); touch-action: manipulation; }
.zs-chnav__item:focus-visible { outline: none; }
.zs-chnav__item:focus-visible .zs-chnav__icon { outline: 2px solid var(--chn-on); outline-offset: 2px; border-radius: 12px; }
.zs-chnav__icon { position: relative; display: grid; place-items: center; color: var(--chn-off); opacity: .72; transition: opacity 160ms var(--zs-ease-standard), color 160ms, transform 160ms var(--zs-ease-spring); }
.zs-chnav__item.is-active .zs-chnav__icon { color: var(--chn-on); opacity: 1; }
.zs-chnav__item.is-active { color: var(--chn-on-label); font-weight: 600; }
.zs-chnav__item:active .zs-chnav__icon { transform: scale(.92); transition-duration: 80ms; }
.zs-chnav__label { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zs-chnav--ios .zs-chnav__item { gap: 1px; height: 49px; padding-top: 6px; box-sizing: border-box; font-size: 10px; line-height: 12px; font-weight: 500; letter-spacing: .01em; }
.zs-chnav--ios .zs-chnav__item.is-active { font-weight: 600; }
.zs-chnav--ios .zs-chnav__icon { width: 30px; height: 28px; }
.zs-chnav--ios .zs-chnav__icon .zi { width: 27px; height: 27px; --zi-stroke: 1.6; }
.zs-chnav--android { padding: 5px; }
.zs-chnav--android .zs-chnav__item { gap: 4px; font-size: 12px; line-height: 16px; font-weight: 500; }
.zs-chnav--android .zs-chnav__item.is-active { font-weight: 700; }
.zs-chnav--android .zs-chnav__icon { width: 64px; height: 32px; border-radius: 16px; }
.zs-chnav--android .zs-chnav__icon .zi { width: 24px; height: 24px; }
.zs-chnav__ind { position: absolute; z-index: 0; left: 0; top: 0; border-radius: 16px; background: var(--chn-ind); opacity: 0; pointer-events: none; transform-origin: center; will-change: transform; }
.zs-chnav__fx { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; pointer-events: none; }
.zs-app-ripple { position: absolute; border-radius: 50%; background: var(--chn-ripple, var(--zs-overlay-press)); transform: scale(0); opacity: 1; pointer-events: none; animation: zs-app-ripple 480ms var(--zs-ease-decelerate) forwards; }
@keyframes zs-app-ripple { to { transform: scale(1); opacity: 0; } }
.zs-chnav__badge { position: absolute; z-index: 2; top: -4px; left: calc(50% + 4px); width: max-content; min-width: 18px; max-width: min(72px, calc(100vw - 24px)); height: 18px; box-sizing: border-box; padding: 0 5px; overflow: visible; border-radius: 9px; white-space: nowrap;
  background: var(--chn-badge-bg); color: var(--chn-badge-fg); box-shadow: 0 0 0 2px var(--chn-bg); font-size: 11px; line-height: 18px; font-weight: 700; text-align: center; font-variant-numeric: tabular-nums; }
.zs-chnav--android .zs-chnav__badge { top: -2px; left: calc(50% + 6px); }
.zs-chnav__badge--dot { min-width: 9px; width: 9px; height: 9px; padding: 0; top: 0; left: calc(50% + 7px); }
.zs-chnav__num { display: block; }
.zs-chnav__item.is-active .zs-chnav__icon.is-pop { animation: zs-chn-icon-pop 420ms var(--zs-ease-standard); }
.zs-chnav__icon.is-bounce, .zs-chrail__icon.is-bounce { animation: zs-chn-bounce 380ms var(--zs-ease-standard); }
.zs-chnav__badge.is-pop { animation: zs-chn-badge-pop 380ms var(--zs-ease-standard); }
.zs-chnav__badge--dot.is-pop { animation: zs-chn-badge-pop 380ms var(--zs-ease-standard), zs-chn-pulse 900ms 380ms ease-out; }
.zs-chnav__num.is-roll-up { animation: zs-chn-roll-up 240ms var(--zs-ease-decelerate); }
.zs-chnav__num.is-roll-down { animation: zs-chn-roll-down 240ms var(--zs-ease-decelerate); }
/* Keep the navigation capsule stationary when returning from a conversation. */
.zs-chnav.is-entering, .zs-chnav.is-swapping { animation: none; translate: none; }
.zs-chnav.is-leaving { display: none; pointer-events: none; animation: none; translate: none; }
#zs-tabbar.zs-tabbar--swapin { animation: none; translate: none; }
@keyframes zs-chn-icon-pop { 0% { transform: scale(.85); } 55% { transform: scale(1.12); } 100% { transform: scale(1); } }
@keyframes zs-chn-bounce { 0%, 100% { translate: 0 0; } 40% { translate: 0 -4px; } 70% { translate: 0 1px; } }
@keyframes zs-chn-badge-pop { 0% { transform: scale(0); } 60% { transform: scale(1.15); } 100% { transform: scale(1); } }
@keyframes zs-chn-pulse { 0% { box-shadow: 0 0 0 2px var(--chn-bg), 0 0 0 2px var(--chn-badge-bg); } 100% { box-shadow: 0 0 0 2px var(--chn-bg), 0 0 0 9px transparent; } }
@keyframes zs-chn-roll-up { from { transform: translateY(80%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes zs-chn-roll-down { from { transform: translateY(-80%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes zs-chn-in { from { translate: 0 100%; opacity: .3; } to { translate: 0 0; opacity: 1; } }
@keyframes zs-chn-out { from { translate: 0 0; opacity: 1; } to { translate: 0 100%; opacity: 0; } }
@keyframes zs-chn-tabs-in { from { translate: 0 24px; opacity: 0; } to { translate: 0 0; opacity: 1; } }

/* Channel rail (>= 768 x 560): far-left icon rail of the full-window WhatsApp Web / Telegram Web layout. */
.zs-chrail { --chr-bg: var(--zs-wa-header-web); --chr-line: var(--zs-wa-divider); --chr-icon: var(--zs-wa-icon); --chr-active: var(--zs-wa-text); --chr-active-bg: color-mix(in srgb, var(--zs-wa-text) 10%, transparent);
  --chr-hover: color-mix(in srgb, var(--zs-wa-text) 6%, transparent); --chn-bg: var(--chr-bg); --chn-badge-bg: var(--zs-wa-unread); --chn-badge-fg: var(--zs-wa-on-unread);
  position: fixed; z-index: var(--zs-z-header); inset-block: 0; inset-inline-start: 0; display: none; flex-direction: column; justify-content: space-between; width: 64px; box-sizing: border-box;
  padding: calc(12px + var(--zs-safe-top)) 0 calc(12px + var(--zs-safe-bottom)); background: var(--chr-bg); border-inline-end: 1px solid var(--chr-line); }
.zs-chrail--tg { --chr-bg: var(--zs-tg-bg); --chr-line: var(--zs-tg-divider); --chr-icon: var(--zs-tg-icon); --chr-active: var(--zs-tg-accent); --chr-active-bg: color-mix(in srgb, var(--zs-tg-accent) 14%, transparent);
  --chr-hover: color-mix(in srgb, var(--zs-tg-text) 6%, transparent); --chn-badge-bg: var(--zs-tg-unread); --chn-badge-fg: var(--zs-tg-on-unread); }
.zs-chrail__top, .zs-chrail__bottom { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.zs-chrail__item { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--chr-icon); text-decoration: none; transition: background-color 160ms var(--zs-ease-standard), color 160ms; }
.zs-chrail__item:hover { background: var(--chr-hover); }
.zs-chrail__item:active .zs-chrail__icon { transform: scale(.92); }
.zs-chrail__item.is-active { background: var(--chr-active-bg); color: var(--chr-active); }
.zs-chrail__icon { position: relative; display: grid; place-items: center; transition: transform 160ms var(--zs-ease-spring); }
.zs-chrail__icon .zi { width: 24px; height: 24px; }
.zs-chrail .zs-chnav__badge { top: -7px; left: 12px; }
.zs-chrail__tip { position: absolute; z-index: 3; top: 50%; left: calc(100% + 10px); padding: 5px 9px; border-radius: 7px; background: var(--zs-text); color: var(--zs-bg); font-size: 12px; font-weight: 600; line-height: 16px; white-space: nowrap;
  opacity: 0; transform: translate(-4px,-50%); pointer-events: none; transition: opacity 140ms, transform 140ms var(--zs-ease-standard); }
.zs-chrail__item:hover .zs-chrail__tip, .zs-chrail__item:focus-visible .zs-chrail__tip { opacity: 1; transform: translate(0,-50%); }
.zs-chrail__theme { position: relative; display: grid; width: 24px; height: 24px; place-items: center; }
.zs-chrail__item--avatar .zs-avatar { width: 32px; height: 32px; }
.zs-chrail__item--back { margin-top: 4px; }
.zs-chrail__home { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid color-mix(in srgb, var(--zs-on-accent) 30%, transparent); border-radius: 12px; background: var(--zs-gradient-brand); color: var(--zs-on-accent); box-shadow: 0 4px 14px color-mix(in srgb, var(--zs-accent) 36%, transparent), inset 0 1px 0 color-mix(in srgb, white 24%, transparent); }
.zs-chrail__home .zi { width: 21px; height: 21px; filter: drop-shadow(0 1px 2px rgb(0 0 0 / 18%)); }
.zs-chrail__item--back:hover .zs-chrail__home { box-shadow: 0 5px 18px color-mix(in srgb, var(--zs-accent) 48%, transparent), inset 0 1px 0 color-mix(in srgb, white 30%, transparent); }
@media (prefers-reduced-motion: no-preference) {
  html:not([data-motion="reduce"]) .zs-chrail__home .zi { animation: zs-chrail-home-glow 3.2s ease-in-out infinite; }
}
@keyframes zs-chrail-home-glow { 0%, 100% { transform: translateY(0) scale(1); filter: drop-shadow(0 1px 2px rgb(0 0 0 / 18%)); } 50% { transform: translateY(-1px) scale(1.08); filter: drop-shadow(0 0 6px rgb(255 255 255 / 70%)); } }
@media (min-width: 768px) and (min-height: 560px) {
  .zs-chrail { display: flex; }
  #zs-app.has-chrail { --zs-chrail-w: 64px; padding-inline-start: var(--zs-chrail-w); }
  .zs-chnav { display: none; }
}

/* ---------------------------------------------------------------- More card (UI-CHANGES §G1) */
.zs-more-root { position: fixed; z-index: var(--zs-z-sheet); inset: 0; }
.zs-more__scrim { position: absolute; inset: 0; background: color-mix(in srgb, var(--zs-scrim) 85%, transparent); -webkit-backdrop-filter: blur(6px) saturate(120%); backdrop-filter: blur(6px) saturate(120%); }
.zs-more { position: absolute; left: 12px; right: 12px; display: flex; flex-direction: column; gap: 14px; box-sizing: border-box; max-width: 460px; margin: 0 auto; padding: 8px 14px 12px; overflow: hidden;
  border-radius: 28px; background: var(--zs-glass-strong); -webkit-backdrop-filter: saturate(180%) blur(28px); backdrop-filter: saturate(180%) blur(28px);
  box-shadow: 0 0 0 1px var(--zs-hairline), inset 0 1px 0 var(--zs-glass-border), var(--zs-shadow-xl); outline: none; touch-action: pan-x; }
.zs-more__grab { align-self: center; flex: none; width: 36px; height: 5px; margin-bottom: -4px; border-radius: 3px; background: var(--zs-border-strong); opacity: .7; }
.zs-more__profile { display: flex; flex: none; align-items: center; gap: 12px; min-width: 0; padding: 8px; margin: 0 -6px; border-radius: 20px; text-align: left; transition: background-color 140ms, transform 140ms var(--zs-ease-spring); }
.zs-more__profile:hover { background: var(--zs-overlay-hover); }
.zs-more__profile:active { background: var(--zs-overlay-press); transform: scale(.985); }
.zs-more__who { display: grid; flex: 1; min-width: 0; gap: 1px; }
.zs-more__name { font-size: 16px; line-height: 21px; font-weight: 700; letter-spacing: -.01em; }
.zs-more__handle { color: var(--zs-text-secondary); font-size: 13px; line-height: 17px; }
.zs-more__chip { display: inline-flex; flex: none; align-items: center; gap: 5px; max-width: 46%; height: 28px; box-sizing: border-box; padding: 0 10px; overflow: hidden; border-radius: 14px;
  background: var(--zs-accent-soft); color: var(--zs-accent-text); font-size: 12px; font-weight: 700; white-space: nowrap; }
.zs-more__chip span { overflow: hidden; text-overflow: ellipsis; }
.zs-more__chip .zi { flex: none; }
.zs-more__chip.is-warn { background: var(--zs-warning-soft); color: var(--zs-warning-ink); }
.zs-more__chip.is-upgrade { background: var(--zs-gradient-brand); color: var(--zs-lit-ffffff); box-shadow: var(--zs-shadow-accent); cursor: pointer; }
.zs-more__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px 4px; min-height: 0; margin: 0 -6px; padding: 2px 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
.zs-more__grid::-webkit-scrollbar { display: none; }
@media (max-width: 340px) { .zs-more__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.zs-more__tile { display: grid; justify-items: center; align-content: start; gap: 7px; min-width: 0; padding: 8px 2px 6px; border-radius: 18px; color: var(--zs-text); transition: transform 140ms var(--zs-ease-spring), background-color 140ms; }
.zs-more__tile:hover { background: var(--zs-overlay-hover); }
.zs-more__tile:active { transform: scale(.95); background: var(--zs-overlay-press); transition-duration: 80ms; }
.zs-more__tile:focus-visible { outline: 2px solid var(--zs-accent); outline-offset: 0; }
.zs-more__icon { --t-bg: var(--zs-surface-2); --t-fg: var(--zs-text-secondary); position: relative; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 17px; color: var(--t-fg);
  background: linear-gradient(150deg, var(--t-bg), color-mix(in srgb, var(--t-bg) 70%, transparent)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--t-fg) 12%, transparent), inset 0 1px 0 var(--zs-glass-border); }
.zs-more__icon .zi { width: 24px; height: 24px; }
.zs-more__icon--brand { --t-bg: var(--zs-accent-soft); --t-fg: var(--zs-accent-text); }
.zs-more__icon--green { --t-bg: var(--zs-success-soft); --t-fg: var(--zs-success-ink); }
.zs-more__icon--blue { --t-bg: var(--zs-info-soft); --t-fg: var(--zs-info-ink); }
.zs-more__icon--amber { --t-bg: var(--zs-warning-soft); --t-fg: var(--zs-warning-ink); }
.zs-more__icon--pink { --t-bg: var(--zs-danger-soft); --t-fg: var(--zs-danger-ink); }
.zs-more__icon--slate { --t-bg: var(--zs-surface-2); --t-fg: var(--zs-text-secondary); }
.zs-more__icon .zs-app-ripple { --chn-ripple: color-mix(in srgb, var(--t-fg) 22%, transparent); }
.zs-more__badge { position: absolute; z-index: 1; top: -4px; right: -6px; min-width: 18px; height: 18px; box-sizing: border-box; padding: 0 5px; border-radius: 9px; background: var(--zs-danger); color: var(--zs-lit-ffffff);
  box-shadow: 0 0 0 2px var(--zs-elevated); font-size: 11px; line-height: 18px; font-weight: 700; text-align: center; }
.zs-more__badge--dot { min-width: 10px; width: 10px; height: 10px; padding: 0; top: -1px; right: -1px; }
.zs-more__label { max-width: 100%; overflow: hidden; color: var(--zs-text); font-size: 12px; line-height: 15px; font-weight: 600; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.zs-more__foot { display: flex; flex: none; align-items: center; justify-content: space-between; gap: 10px; padding-top: 10px; border-top: 1px solid var(--zs-hairline); }
.zs-more__foot-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px; border-radius: 20px; font-size: 14px; font-weight: 650; transition: background-color 140ms, transform 140ms var(--zs-ease-spring); }
.zs-more__foot-btn:hover { background: var(--zs-overlay-hover); }
.zs-more__foot-btn:active { transform: scale(.96); background: var(--zs-overlay-press); }
.zs-more__theme { margin-left: -8px; color: var(--zs-text); }
.zs-more__morph { position: relative; display: grid; width: 22px; height: 22px; place-items: center; }
.zs-more__morph .zi { width: 20px; height: 20px; }
.zs-more__logout { margin-right: -8px; color: var(--zs-danger-ink); }
.zs-more__logout .zi { width: 20px; height: 20px; }
@media (prefers-reduced-motion: no-preference) {
  html:not([data-motion="reduce"]) .zs-more.is-staggering .zs-more__tile { animation: zs-more-tile 260ms var(--zs-ease-decelerate) both; animation-delay: calc(70ms + var(--i, 0) * 28ms); }
  html:not([data-motion="reduce"]) .zs-more.is-staggering .zs-more__icon { animation: zs-more-pop 420ms var(--zs-ease-standard) both; animation-delay: calc(90ms + var(--i, 0) * 28ms); }
}
@keyframes zs-more-tile { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes zs-more-pop { 0% { transform: scale(.8); } 55% { transform: scale(1.06); } 100% { transform: scale(1); } }
#zs-tabbar [data-key="more"].is-open .zi { color: var(--zs-accent-text); }
/* The tab bar stays above the More scrim so the More tab (now an x) closes the card again. */
html.is-more-open #zs-tabbar { z-index: calc(var(--zs-z-sheet) + 1); }

/* Reduced motion: colour / opacity only. */
@media (prefers-reduced-motion: reduce) {
  .zs-chnav, .zs-chnav *, #zs-tabbar.zs-tabbar--swapin, .zs-chrail *, .zs-more * { animation: none !important; transition-property: color, background-color, opacity !important; }
}
html[data-motion="reduce"] .zs-chnav, html[data-motion="reduce"] .zs-chnav *, html[data-motion="reduce"] #zs-tabbar.zs-tabbar--swapin, html[data-motion="reduce"] .zs-chrail *, html[data-motion="reduce"] .zs-more * { animation: none !important; transition-property: color, background-color, opacity !important; }

/* Header refresh button (owner request 2026-10-14) */
.zs-app-refresh.is-spinning>.zi{animation:zs-spin .75s cubic-bezier(.4,.1,.3,1) infinite}
.zs-app-refresh:active>.zi{transform:rotate(-40deg);transition:transform .12s ease}

/* Let inbox rows scroll beneath the floating menu without stranding the last row. */
@media (max-width: 767px), (max-height: 559px) {
  #zs-app.has-chnav > .zs-view:has(> .zs-wa-inbox-screen),
  #zs-app.has-chnav > .zs-view:has(> .zs-tg-inbox-screen) {
    padding-bottom: 0;
  }
  #zs-app.has-chnav > .zs-view > .zs-wa-inbox-screen .zs-chat-list__rows,
  #zs-app.has-chnav > .zs-view > .zs-tg-inbox-screen .zs-chat-list__rows {
    padding-bottom: var(--zs-chnav-space);
    scroll-padding-bottom: var(--zs-chnav-space);
  }
}

/* Keep mobile inbox controls above the existing chat-row scroller. */
@media (max-width: 767px), (max-height: 559px) {
  :is(.zs-wa-inbox-screen, .zs-tg-inbox-screen) .zs-chat-list {
    isolation: isolate;
  }
  :is(.zs-wa-inbox-screen, .zs-tg-inbox-screen) .zs-chat-search {
    position: sticky;
    top: 0;
    z-index: 2;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
  }
  :is(.zs-wa-inbox-screen, .zs-tg-inbox-screen) .zs-chat-chips {
    position: relative;
    z-index: 1;
    background: var(--ch-bg);
  }
  :is(.zs-wa-inbox-screen, .zs-tg-inbox-screen) .zs-chat-list__rows {
    margin-top: calc(-1 * var(--zs-inbox-controls-h, 0px));
    padding-top: var(--zs-inbox-controls-h, 0px);
    scroll-padding-top: var(--zs-inbox-controls-h, 0px);
  }
}

/* Contacts search stays beneath the channel header while contacts scroll. */
@media (max-width: 767px), (max-height: 559px) {
  .zs-chframe--wa .zs-wa-x-contacts { overflow: clip; }
  :is(.zs-chat-contacts--wa, .zs-chat-contacts--tg) > .zs-chat-search {
    position: sticky;
    top: calc(60px + var(--zs-safe-top));
    z-index: 10;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
  }
  html[data-platform="ios"] :is(.zs-chat-contacts--wa, .zs-chat-contacts--tg) > .zs-chat-search {
    top: calc(50px + var(--zs-safe-top));
  }
}

/* Mobile chat-row actions; desktop retains the original row layout. */
.zs-chat-swipe { position: relative; }
.zs-chat-swipe__surface { min-width: 0; }
.zs-chat-swipe__toggle, .zs-chat-swipe__actions { display: none; }
.zs-chat-swipe [role="link"] { cursor: pointer; }
.zs-chat-swipe [role="link"]:focus-visible { outline: 2px solid var(--zs-focus-ring); outline-offset: -2px; }
.zs-chat-swipe [role="link"]:hover { background-color: var(--zs-overlay-hover); }
@media (max-width: 767px) {
  .zs-chat-swipe { overflow: hidden; }
  .zs-chat-swipe__surface { position: relative; display: flex; align-items: stretch; background: var(--ch-bg, var(--zs-bg)); touch-action: pan-y; transition: transform .18s ease; }
  .zs-chat-swipe__surface > [data-conv-id] { flex: 1; min-width: 0; }
  .zs-chat-swipe__toggle { display: grid; place-items: center; flex: 0 0 36px; border: 0; background: transparent; color: var(--zs-text-muted); }
  .zs-chat-swipe__actions:not([hidden]) { position: absolute; inset: 0 0 0 auto; width: 152px; display: flex; }
  .zs-chat-swipe.is-leading .zs-chat-swipe__actions { inset: 0 auto 0 0; }
  .zs-chat-swipe__actions > button { display: grid; place-items: center; width: 76px; border: 0; border-radius: 0; min-height: 44px; font: inherit; font-size: 13px; color: #fff; }
  .zs-chat-swipe__more { background: #53616b; }
  .zs-chat-swipe__archive { background: #167b55; }
  .zs-chat-swipe.is-open .zs-chat-swipe__surface { transform: translateX(-152px); }
  .zs-chat-swipe.is-open.is-leading .zs-chat-swipe__surface { transform: translateX(152px); }
  .zs-chat-swipe button:focus-visible { outline: 2px solid currentColor; outline-offset: -3px; }
}
@media (prefers-reduced-motion: reduce) { .zs-chat-swipe__surface { transition: none; } }

/* Small outer gutters on channel settings hubs only. */
@media (max-width: 767px) {
  #zs-app .zs-screen[data-screen="wa.settings"] .zs-wa-page,
  #zs-app .zs-screen[data-screen="tg.settings"] .zs-tg-settings {
    box-sizing: border-box;
    padding-inline: max(8px, env(safe-area-inset-left, 0px)) max(8px, env(safe-area-inset-right, 0px));
  }
}

/* Channel UI uses the same accent tokens as its inbox, not the app purple gradient. */
html[data-channel="wa"] { --zs-channel-ui: var(--zs-wa-accent); --zs-channel-on: #061d18; --zs-channel-radius: 999px; }
html[data-channel="tg"] { --zs-channel-ui: var(--zs-tg-accent); --zs-channel-on: #081826; --zs-channel-radius: 12px; }
html[data-channel="wa"], html[data-channel="tg"] { --zs-channel-link: var(--zs-channel-ui); }
html[data-theme="light"]:is([data-channel="wa"], [data-channel="tg"]) { --zs-channel-link: color-mix(in srgb, var(--zs-channel-ui) 70%, black); }
html:is([data-channel="wa"], [data-channel="tg"]) #zs-app :is(.zs-ai-sender, .zs-wa-page, .zs-tg-settings) {
  --as-accent: var(--zs-channel-ui);
  --as-accent-2: var(--zs-channel-ui);
  --zs-accent: var(--zs-channel-ui);
  --zs-accent-text: var(--zs-channel-link);
  --zs-accent-ink: var(--zs-channel-link);
  --zs-accent-soft: color-mix(in srgb, var(--zs-channel-ui) 12%, transparent);
}
html:is([data-channel="wa"], [data-channel="tg"]) #zs-app :is(.zs-ai-sender, .zs-wa-page, .zs-tg-settings) .zs-btn:is(.zs-btn--primary, .zs-btn--solid):not(.zs-btn--danger):not(.zs-btn--danger-soft) {
  background: var(--zs-channel-ui);
  color: var(--zs-channel-on);
  border-radius: var(--zs-channel-radius);
  box-shadow: none;
}
html:is([data-channel="wa"], [data-channel="tg"]) #zs-app :is(.zs-ai-sender, .zs-wa-page, .zs-tg-settings) .zs-btn:focus-visible {
  outline: 2px solid var(--zs-channel-link);
  outline-offset: 3px;
}
html:is([data-channel="wa"], [data-channel="tg"]) #zs-app :is(.zs-ai-sender, .zs-wa-page, .zs-tg-settings) .zs-btn:is(.zs-btn--ghost, .zs-btn--outline, .zs-btn--secondary):not(.zs-btn--danger):not(.zs-btn--danger-soft) { color: var(--zs-channel-link); }
html:is([data-channel="wa"], [data-channel="tg"]) #zs-app .zs-ai-sender :is(.zs-ai-sender__orb-chip, .zs-ai-sender__step, .zs-ai-sender__campaign-icon) { color: var(--zs-channel-link); }
html[data-channel="wa"] #zs-app .zs-screen[data-screen="wa.settings"] .zs-wa-linkrow > svg:first-child,
html[data-channel="tg"] #zs-app .zs-screen[data-screen="tg.settings"] .zs-tg-x-roundbtn { color: var(--zs-channel-link); }
html[data-channel="tg"] #zs-app .zs-screen[data-screen="tg.settings"] .zs-item:not(.zs-item--danger) .zs-tile-icon:not(.zs-tile-icon--red) {
  background: var(--zs-channel-ui);
  color: var(--zs-channel-on);
}
html:is([data-channel="wa"], [data-channel="tg"]) :is(.zs-chframe--wa, .zs-chframe--tg) .zs-chhead__btn { color: var(--zs-channel-link); }
html:is([data-channel="wa"], [data-channel="tg"]) .zs-chrail__home {
  background: var(--zs-channel-ui);
  color: var(--zs-channel-on);
  border-color: transparent;
  box-shadow: none;
}
html:is([data-channel="wa"], [data-channel="tg"]) .zs-chrail__item--back:is(:hover, :focus-visible) .zs-chrail__home {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--zs-channel-ui) 30%, transparent);
}

/* Mobile content gutters: structural chat canvas/chrome/composer remain full bleed. */
@media(max-width:767px){
 #zs-app{--zs-content-gutter-left:max(8px,env(safe-area-inset-left));--zs-content-gutter-right:max(8px,env(safe-area-inset-right))}
 #zs-app :is(.zs-chat-info,.zs-assistant-archive){box-sizing:border-box;padding-left:var(--zs-content-gutter-left)!important;padding-right:var(--zs-content-gutter-right)!important;min-width:0}
 #zs-app :is(.zs-chat-list__rows,.zs-chat-contacts__list,.zs-tg-x-toprows){margin-left:var(--zs-content-gutter-left);margin-right:var(--zs-content-gutter-right);width:auto;min-width:0}
 #zs-app .zs-notify-page__list{padding-left:var(--zs-content-gutter-left);padding-right:var(--zs-content-gutter-right)}
 #zs-app .zs-public-page__toc{margin-left:0;margin-right:0}
}

/* Remaining mobile settings/setup templates share the existing content gutter tokens. */
@media(max-width:767px){
 #zs-app :is(.zs-social-connect,.zs-tg-settings.zs-tg-x-page:not(:has(.zs-chat-info))){box-sizing:border-box;min-width:0;padding-left:var(--zs-content-gutter-left)!important;padding-right:var(--zs-content-gutter-right)!important}
 #zs-app .zs-wa-guidehost{margin-left:var(--zs-content-gutter-left);margin-right:var(--zs-content-gutter-right);min-width:0}
}
@media(max-width:767px){
 #zs-app .zs-guide__stepbody,#zs-app .zs-guide__copyrow{grid-template-columns:minmax(0,1fr);min-width:0}
 #zs-app .zs-guide__stepbody>*,#zs-app .zs-guide__copyrow>*{min-width:0;max-width:100%;overflow-wrap:anywhere}
}

@media(max-width:767px){#zs-app .zs-onboarding-setup{box-sizing:border-box;padding-left:var(--zs-content-gutter-left);padding-right:var(--zs-content-gutter-right)}}
/* Keep the channel capsule out of the page snapshot during chat navigation. */
.zs-chnav:not(.is-leaving) { view-transition-name: zs-channel-nav; }
::view-transition-group(zs-channel-nav),
::view-transition-old(zs-channel-nav),
::view-transition-new(zs-channel-nav) { animation: none !important; }
::view-transition-old(zs-channel-nav) { display: none; }

/* One persistent channel footer on both inbox and conversation routes. */
@media (max-width:767px), (max-height:559px) {
  html.has-chat-footer { --zs-chat-footer-space:calc(76px + max(12px,calc(var(--zs-safe-bottom) - 12px))); }
  html.has-chat-footer:not(.is-kb-open) #zs-app > .zs-chnav { display:flex !important; z-index:261; }
  html.has-chat-footer:not(.is-kb-open) .is-chat-host {
    height:auto !important;
    max-height:none !important;
    bottom:calc(var(--zs-vv-bottom-gap,0px) + var(--zs-chat-footer-space)) !important;
  }
  html.has-chat-footer #zs-app.has-chnav > .zs-view { padding-bottom:0; }
  .zs-chnav, .zs-chnav *, #zs-tabbar { animation:none !important; transition:none !important; }
}

/* Keep navigation anchored by CSS, independent of delayed visualViewport samples.
   The browser already positions fixed UI against its viewport; adding the measured
   gap a second time makes the capsule travel as Safari's metrics settle. */
@media (max-width:767px), (max-height:559px) {
  #zs-app > .zs-chnav,
  #zs-tabbar.zs-tabbar:not(.zs-tabbar--material) {
    bottom:max(12px,calc(var(--zs-safe-bottom) - 12px)) !important;
  }
  #zs-tabbar.zs-tabbar--material { bottom:0 !important; }
  #zs-app > .zs-chnav, #zs-tabbar,
  #zs-tabbar.is-scroll-hidden {
    transform:translateZ(0) !important;
    translate:none !important;
    opacity:1 !important;
    pointer-events:auto !important;
    animation:none !important;
    transition:none !important;
  }
}
/* Lists already own their scrolling. Keep the document fixed on both sides of
   the list/thread switch so iOS does not release and re-anchor fixed controls. */
@media (max-width:767px) {
  html.is-messaging-shell {
    height:100%; overflow:hidden; overscroll-behavior:none;
  }
  html.is-messaging-shell body {
    position:fixed; inset:0; width:100%; height:100%; overflow:hidden;
    overscroll-behavior:none;
  }
}

/* Match the reference's compact floating menu; do not turn safe-area space
   into additional footer height. Inbox canvas continues to the screen edge. */
@media (max-width:767px), (max-height:559px) {
  #zs-app:has(.zs-wa-inbox-screen) > .zs-chnav,
  #zs-app:has(.zs-tg-inbox-screen) > .zs-chnav {
    bottom:14px !important;
    height:64px;
    padding:5px;
    border-radius:34px;
  }
  html:has(.zs-wa-inbox-screen) { --zs-inbox-edge:var(--zs-wa-bg); }
  html:has(.zs-tg-inbox-screen) { --zs-inbox-edge:var(--zs-tg-bg); }
  html:has(.zs-wa-inbox-screen), html:has(.zs-tg-inbox-screen),
  html:has(.zs-wa-inbox-screen) body, html:has(.zs-tg-inbox-screen) body,
  #zs-app:has(.zs-wa-inbox-screen), #zs-app:has(.zs-tg-inbox-screen) {
    background-color:var(--zs-inbox-edge);
  }
}

/* Contact search is a fixed row in the page's flex layout, not an inbox-sticky
   overlay. Only the contacts list scrolls between search and pagination. */
#zs-app .zs-chat-contacts > .zs-chat-search {
  display:flex;
  align-items:center;
  gap:9px;
  position:relative;
  inset:auto;
  z-index:auto;
  flex:0 0 auto;
  box-sizing:border-box;
  height:44px;
  min-height:44px;
  margin:8px 8px 12px;
  padding:0 12px;
  border-radius:12px;
}
#zs-app .zs-chat-contacts > .zs-chat-search input { font-size:16px; }
#zs-app .zs-chat-contacts > .zs-chat-search:focus-within {
  outline:2px solid var(--zs-accent);
  outline-offset:2px;
}
#zs-app .zs-chat-contacts__list { min-width:0; scroll-padding-block:8px; }
#zs-app .zs-chat-contacts__pager { margin-top:8px; padding:8px; }
#zs-app .zs-wa-x-contacts__intro { padding:8px 8px 4px; line-height:1.5; }
#zs-app .zs-tg-x-contacts > .zs-listgroup { flex-shrink:0; margin:0 8px 8px; }
@media (min-width:768px) and (min-height:560px) {
  #zs-app .zs-chat-contacts > .zs-chat-search { margin-inline:16px; }
  #zs-app .zs-wa-x-contacts__intro { padding-inline:16px; }
  #zs-app .zs-tg-x-contacts > .zs-listgroup { margin-inline:16px; }
}

/* iOS standalone must keep the same root containing block as Home.
   Fixing html/body collapses its window by the status-bar inset on the reported
   device (932px -> 873px). Inner lists and thread hosts retain their own scrolling. */
@media (max-width:767px) {
  html[data-platform="ios"].is-messaging-shell {
    height:auto;
    overflow:visible;
  }
  html[data-platform="ios"].is-messaging-shell body {
    position:static;
    inset:auto;
    height:auto;
    overflow:visible;
  }
  /* Keep a keyboard/screen-reader action entry without visible row dots.
     Touch users reveal the existing action tray by sliding the row. */
  :is(.zs-wa-inbox-screen,.zs-tg-inbox-screen) .zs-chat-swipe__toggle:not(:focus-visible) {
    position:absolute;
    width:1px;
    height:1px;
    padding:0;
    margin:-1px;
    overflow:hidden;
    clip-path:inset(50%);
    white-space:nowrap;
    border:0;
  }
}

/* Contacts footer clearance belongs to the same canvas as the contact list. */
html[data-channel="wa"]:has(.zs-chat-contacts) { --zs-contacts-canvas:var(--zs-wa-bg); }
html[data-channel="tg"]:has(.zs-chat-contacts) { --zs-contacts-canvas:var(--zs-tg-bg); }
html[data-channel]:has(.zs-chat-contacts),
html[data-channel]:has(.zs-chat-contacts) body,
html[data-channel]:has(.zs-chat-contacts) #zs-app {
  background-color:var(--zs-contacts-canvas);
}

/* Give the iOS message composer its requested breathing room at the bottom. */
@media (max-width:767px) {
  html[data-platform="ios"] #zs-app .zs-chat-frame:is([data-channel="wa"],[data-channel="tg"]) > .zs-chat-composer-wrap {
    padding-bottom:13px !important;
  }
}

/* iOS conversations alone own a document scroll lock. Do not constrain the root
   height to 100%: its client height can exclude the status-bar safe area.
   Inbox/footer layout and safe-area variables retain their existing rules. */
@media (max-width:767px) {
  html[data-platform="ios"].is-messaging-shell.is-chat-locked {
    overflow:hidden;
    overscroll-behavior:none;
  }
  html[data-platform="ios"].is-messaging-shell.is-chat-locked body {
    position:fixed;
    left:0;
    right:0;
    bottom:auto;
    height:auto;
    overflow:hidden;
    overscroll-behavior:none;
  }
}

/* Keep the installed iOS inbox/thread shell stable without percentage heights.
   The root retains the full-screen extent; inner lists own scrolling. */
@media (display-mode: standalone) and (max-width:767px) {
  html[data-platform="ios"].is-messaging-shell {
    min-height:100vh;
    min-height:100lvh;
    height:auto;
    overflow:hidden;
    overscroll-behavior:none;
  }
  html[data-platform="ios"].is-messaging-shell body {
    position:fixed;
    top:0;
    left:0;
    right:0;
    bottom:auto;
    height:auto;
    overflow:hidden;
    overscroll-behavior:none;
  }
}

/* ---------------------------------------------------------------- "Coming soon" page locks (ZXS_Page_Locks) */
.zs-soon { display: inline-block; flex: none; padding: 2px 7px; border-radius: 999px; background: color-mix(in srgb, #f59e0b 20%, transparent); color: #b45309; font-size: 10px; line-height: 14px; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; vertical-align: middle; }
html[data-theme="dark"] .zs-soon { background: color-mix(in srgb, #f59e0b 24%, transparent); color: #fbbf24; }
.zs-sidebar__label--soon { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zs-sidebar__label--soon .zs-soon { margin-right: 7px; }
.zs-sidebar__item.is-soon .zi { opacity: .7; }
.zs-more__soon { position: absolute; z-index: 1; top: -7px; left: 50%; transform: translateX(-50%); padding: 1px 6px; font-size: 9px; line-height: 13px; background: #f59e0b; color: #1f1300; }
html[data-theme="dark"] .zs-more__soon { background: #f59e0b; color: #1f1300; }
.zs-sidebar__label--soon { font-size: 12.5px; letter-spacing: -.02em; }
.zs-sidebar__label--soon .zs-soon { margin-right: 4px; padding: 1px 4px; font-size: 8.5px; line-height: 13px; letter-spacing: 0; }
.zs-sidebar .zs-sidebar__item.is-soon { gap: 7px; padding-right: 2px; }
/* Coming soon screen (app.coming_soon): stage, illustration and motion */
.zs-cs { position: relative; isolation: isolate; display: grid; justify-items: center; align-content: center; gap: 16px; min-height: min(80vh, 760px); max-width: 700px; margin: 0 auto; padding: clamp(20px, 4vw, 44px) clamp(16px, 4vw, 32px); text-align: center; }
.zs-cs > * { animation: zs-cs-rise 620ms var(--zs-ease-standard, cubic-bezier(.2,0,0,1)) both; }
.zs-cs > :nth-child(3) { animation-delay: 90ms; } .zs-cs > :nth-child(4) { animation-delay: 150ms; } .zs-cs > :nth-child(5) { animation-delay: 210ms; }
.zs-cs > :nth-child(6) { animation-delay: 270ms; } .zs-cs > :nth-child(7) { animation-delay: 330ms; } .zs-cs > :nth-child(8) { animation-delay: 390ms; }
.zs-cs__aura { position: absolute; inset: -40px 0 0; z-index: -1; overflow: hidden; pointer-events: none; animation: none !important; }
.zs-cs__aura i { position: absolute; top: 4%; left: 50%; width: 300px; height: 300px; margin-left: -250px; border-radius: 50%; background: #7C62FF; filter: blur(70px); opacity: .28; animation: zs-cs-drift 15s ease-in-out infinite; }
.zs-cs__aura i + i { top: 16%; width: 250px; height: 250px; margin-left: 10px; background: #FF5FA2; opacity: .2; animation-duration: 19s; animation-direction: reverse; }
.zs-cs__stage { position: relative; width: min(100%, 440px); aspect-ratio: 360 / 260; padding: 1px; border-radius: 30px; background: linear-gradient(140deg, color-mix(in srgb, #7C62FF 60%, transparent), color-mix(in srgb, var(--zs-text) 8%, transparent) 45%, color-mix(in srgb, #FF5FA2 55%, transparent)); box-shadow: 0 34px 80px -34px rgb(124 98 255 / 55%), 0 2px 0 rgb(255 255 255 / 4%) inset; }
.zs-cs__stage-in { height: 100%; overflow: hidden; border-radius: 29px; background: radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, #7C62FF 16%, var(--zs-surface)), var(--zs-surface) 72%); }
.zs-cs__svg { display: block; width: 100%; height: 100%; overflow: visible; }
.zs-cs__card { fill: var(--zs-surface-2); stroke: color-mix(in srgb, var(--zs-text) 10%, transparent); }
.zs-cs__toast { fill: var(--zs-surface); stroke: color-mix(in srgb, var(--zs-text) 12%, transparent); filter: drop-shadow(0 10px 16px rgb(10 8 30 / 28%)); }
.zs-cs__panel { fill: color-mix(in srgb, var(--zs-text) 7%, transparent); }
.zs-cs__line { fill: color-mix(in srgb, var(--zs-text) 16%, transparent); }
.zs-cs__line--strong { fill: color-mix(in srgb, var(--zs-text) 36%, transparent); }
.zs-cs__dot { fill: color-mix(in srgb, var(--zs-text) 22%, transparent); }
.zs-cs__accent { fill: url(#zs-cs-grad); }
.zs-cs__stroke-white { fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.zs-cs__stroke-accent { fill: none; stroke: #8B74FF; stroke-width: 2.2; stroke-linecap: round; }
.zs-cs__bar, .zs-cs__tile, .zs-cs__bob, .zs-cs__float, .zs-cs__pop, .zs-cs__ping, .zs-cs__spark, .zs-cs__core { transform-box: fill-box; transform-origin: 50% 50%; }
.zs-cs__bar { fill: url(#zs-cs-grad); transform-origin: 50% 100%; animation: zs-cs-grow 2.8s ease-in-out infinite; animation-delay: calc(var(--i, 0) * 140ms); }
.zs-cs__tile { animation: zs-cs-tile 4.2s ease-in-out infinite; animation-delay: calc(var(--i, 0) * 260ms); }
.zs-cs__ring-track { fill: none; stroke: color-mix(in srgb, var(--zs-text) 10%, transparent); stroke-width: 8; }
.zs-cs__ring { fill: none; stroke: url(#zs-cs-grad); stroke-width: 8; stroke-linecap: round; stroke-dasharray: 176; stroke-dashoffset: 176; animation: zs-cs-ring 3.6s ease-in-out infinite alternate; }
.zs-cs__float { animation: zs-cs-float 4.4s ease-in-out infinite; animation-delay: calc(var(--i, 0) * -1.6s); }
.zs-cs__bob { animation: zs-cs-float 4s ease-in-out infinite; animation-delay: calc(var(--i, 0) * -1.1s); }
.zs-cs__pop { animation: zs-cs-pop 2.6s ease-in-out infinite; animation-delay: calc(var(--i, 0) * 380ms); }
.zs-cs__pin-halo { fill: color-mix(in srgb, #7C62FF 26%, transparent); }
.zs-cs__orbit { fill: none; stroke: color-mix(in srgb, var(--zs-text) 13%, transparent); stroke-width: 1.2; stroke-dasharray: 3 6; }
.zs-cs__sweep { fill: url(#zs-cs-sweep); transform-origin: 180px 132px; animation: zs-cs-spin 5.5s linear infinite; }
.zs-cs__ping { fill: none; stroke: #8B74FF; stroke-width: 2; animation: zs-cs-ping 3s cubic-bezier(.2,.6,.3,1) infinite; animation-delay: calc(var(--i, 0) * 1.5s); }
.zs-cs__core { animation: zs-cs-breathe 3s ease-in-out infinite; }
.zs-cs__spark { fill: url(#zs-cs-grad); animation: zs-cs-twinkle 2.8s ease-in-out infinite; animation-delay: calc(var(--i, 0) * 700ms); }
.zs-cs__shimmer { animation: zs-cs-shimmer 2.2s ease-in-out infinite; }
.zs-cs__pill { display: inline-flex; align-items: center; gap: 9px; margin-top: 8px; padding: 7px 15px 7px 12px; border: 1px solid color-mix(in srgb, #7C62FF 42%, transparent); border-radius: 999px; background: color-mix(in srgb, #7C62FF 13%, transparent); color: var(--zs-accent-text); font-size: 11.5px; line-height: 16px; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; }
.zs-cs__pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(135deg, #7C62FF, #FF5FA2); }
.zs-cs__pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #9B86FF; animation: zs-cs-halo 1.8s ease-out infinite; }
.zs-cs__title { margin: 0; color: var(--zs-text); font-size: clamp(27px, 4.6vw, 42px); line-height: 1.1; font-weight: 750; letter-spacing: -.035em; text-wrap: balance; }
.zs-cs__name { background: linear-gradient(100deg, #8B74FF, #FF5FA2); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.zs-cs__sub { max-width: 520px; margin: 0; color: var(--zs-text-secondary); font-size: 15.5px; line-height: 1.6; text-wrap: pretty; }
.zs-cs__feats { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 2px 0 0; padding: 0; list-style: none; }
.zs-cs__feats:empty { display: none; }
.zs-cs__feats li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 13px; border: 1px solid var(--zs-hairline); border-radius: 12px; background: color-mix(in srgb, var(--zs-text) 4%, transparent); color: var(--zs-text); font-size: 13px; line-height: 16px; font-weight: 600; }
.zs-cs__tick { width: 7px; height: 7px; border-radius: 50%; background: linear-gradient(135deg, #7C62FF, #FF5FA2); }
.zs-cs__actions { margin-top: 10px; }
.zs-cs__note { margin: 0; color: var(--zs-text-secondary); font-size: 12.5px; line-height: 18px; opacity: .8; }
@keyframes zs-cs-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes zs-cs-drift { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(40px, 26px) scale(1.12); } }
@keyframes zs-cs-grow { 0%, 100% { transform: scaleY(.42); } 50% { transform: scaleY(1); } }
@keyframes zs-cs-tile { 0%, 100% { opacity: .78; } 50% { opacity: 1; } }
@keyframes zs-cs-ring { from { stroke-dashoffset: 150; } to { stroke-dashoffset: 40; } }
@keyframes zs-cs-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes zs-cs-pop { 0%, 100% { transform: scale(.72); opacity: .55; } 50% { transform: scale(1.12); opacity: 1; } }
@keyframes zs-cs-spin { to { transform: rotate(360deg); } }
@keyframes zs-cs-ping { from { transform: scale(1); opacity: .7; } to { transform: scale(3.6); opacity: 0; } }
@keyframes zs-cs-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.07); } }
@keyframes zs-cs-twinkle { 0%, 100% { transform: scale(.5) rotate(0deg); opacity: .25; } 50% { transform: scale(1) rotate(45deg); opacity: 1; } }
@keyframes zs-cs-shimmer { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }
@keyframes zs-cs-halo { from { transform: scale(1); opacity: .7; } to { transform: scale(3.2); opacity: 0; } }
html[data-motion="reduce"] .zs-cs, html[data-motion="reduce"] .zs-cs * , html[data-motion="reduce"] .zs-cs *::after { animation: none !important; }
html[data-motion="reduce"] .zs-cs__ring { stroke-dashoffset: 60; }
@media (prefers-reduced-motion: reduce) { .zs-cs, .zs-cs *, .zs-cs *::after { animation: none !important; } .zs-cs__ring { stroke-dashoffset: 60; } }
@media (max-width: 520px) { .zs-cs { gap: 13px; min-height: 0; padding-top: 12px; padding-bottom: 28px; } .zs-cs__stage { border-radius: 24px; } .zs-cs__stage-in { border-radius: 23px; } .zs-cs__sub { font-size: 14.5px; } }
.zs-cs > :nth-child(9) { animation-delay: 450ms; }
.zs-cs__admin { display: grid; justify-items: center; gap: 9px; max-width: 480px; margin-top: 12px; padding: 16px 20px; border: 1px dashed color-mix(in srgb, var(--zs-text) 24%, transparent); border-radius: 18px; background: color-mix(in srgb, var(--zs-text) 3%, transparent); }
.zs-cs__admin-tag { padding: 2px 9px; border-radius: 999px; background: color-mix(in srgb, #f59e0b 20%, transparent); color: #d97706; font-size: 10.5px; line-height: 15px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
html[data-theme="dark"] .zs-cs__admin-tag { color: #fbbf24; }
.zs-cs__admin-text { color: var(--zs-text-secondary); font-size: 13px; line-height: 19px; }
.zs-cs__admin-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 16px; }
.zs-cs__admin-actions .zs-link { font-size: 13px; font-weight: 600; }


/* ==========================================================================
   Dashboard · 2026-11 redesign: brand gradient, an animated hero illustration, livelier cards and shortcut tiles.
   Structure and wording are unchanged. Motion is gentle and stated with !important so it also plays on phones set
   to "reduce motion" (owner request), like the Agent page.
   ========================================================================== */
.zs-app-home{--zh2-a:#b12bf2;--zh2-b:#6a4dff;--zh2-c:#19b6ff;--zh2-brand:linear-gradient(100deg,var(--zh2-a) 0%,var(--zh2-b) 52%,var(--zh2-c) 100%);--zh2-ring:rgba(106,77,255,.26);--zh2-line:color-mix(in srgb,var(--zs-text,#fff) 10%,transparent)}
@keyframes zh2-rise{0%{opacity:0;transform:translateY(16px)}100%{opacity:1;transform:none}}
@keyframes zh2-float{0%,100%{transform:translateY(0)}50%{transform:translateY(-8px)}}
@keyframes zh2-spin{to{transform:rotate(360deg)}}
@keyframes zh2-unspin{to{transform:rotate(-360deg)}}
@keyframes zh2-pulse{0%,100%{opacity:.5;transform:scale(1)}50%{opacity:1;transform:scale(1.08)}}
@keyframes zh2-pop{0%,10%{opacity:0;transform:translateY(10px) scale(.9)}20%,78%{opacity:1;transform:none}90%,100%{opacity:0;transform:translateY(-10px) scale(.96)}}
@keyframes zh2-shine{0%{background-position:0% 50%}100%{background-position:200% 50%}}
@keyframes zh2-bob{0%,100%{transform:translateY(0) rotate(0)}50%{transform:translateY(-3px) rotate(-5deg)}}
@keyframes zh2-dot{0%,100%{box-shadow:0 0 0 0 rgba(34,197,94,.55)}60%{box-shadow:0 0 0 6px rgba(34,197,94,0)}}

/* Cards arrive one after another */
html .zs-app-home>.zs-app-home__hello,html .zs-app-home>.zs-app-home__slot{animation:zh2-rise .6s cubic-bezier(.2,.8,.2,1) both!important}
html .zs-app-home>.zs-app-home__slot:nth-of-type(2){animation-delay:.06s!important}html .zs-app-home>.zs-app-home__slot:nth-of-type(3){animation-delay:.12s!important}html .zs-app-home>.zs-app-home__slot:nth-of-type(4){animation-delay:.18s!important}html .zs-app-home>.zs-app-home__slot:nth-of-type(5){animation-delay:.24s!important}html .zs-app-home>.zs-app-home__slot:nth-of-type(n+6){animation-delay:.3s!important}

/* ---- Hero greeting ---- */
html .zs-app-home .zs-app-home__hello{position:relative;isolation:isolate;display:grid;align-content:center;gap:6px;min-height:150px;margin-bottom:18px;padding:clamp(18px,3vw,30px) clamp(18px,3vw,34px);padding-right:min(46%,320px);border:1.5px solid transparent;border-radius:26px;background:linear-gradient(var(--zs-surface,#12141f),var(--zs-surface,#12141f)) padding-box,var(--zh2-brand) border-box;box-shadow:0 22px 56px var(--zh2-ring);overflow:hidden}
html .zs-app-home .zs-app-home__hello::before{content:"";position:absolute;z-index:-1;inset:-60% -10% auto 40%;height:460px;background:radial-gradient(closest-side,color-mix(in srgb,var(--zh2-b) 26%,transparent),transparent);pointer-events:none}
html .zs-app-home .zs-app-home__hello::after{content:"";position:absolute;z-index:-1;inset:auto auto -70% -12%;width:55%;height:320px;background:radial-gradient(closest-side,color-mix(in srgb,var(--zh2-a) 15%,transparent),transparent);pointer-events:none}
html .zs-app-home .zs-app-home__date{justify-self:start;padding:6px 11px;border:1px solid var(--zh2-line);border-radius:999px;background:color-mix(in srgb,var(--zs-text,#fff) 4%,transparent);font-size:12px;font-weight:650;letter-spacing:.02em;color:var(--zs-text-secondary,#a9adc2)}
html .zs-app-home .zs-app-home__title{margin:4px 0 0;font-size:clamp(26px,3.6vw,42px);line-height:1.08;letter-spacing:-.035em;font-weight:800;background:linear-gradient(100deg,var(--zs-text,#fff) 0%,var(--zs-text,#fff) 42%,var(--zh2-a) 68%,var(--zh2-b) 84%,var(--zh2-c) 100%);-webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-fill-color:transparent}
html .zs-app-home .zs-app-home__sub{font-size:15px;color:var(--zs-text-secondary,#a9adc2)}
/* illustration */
html .zs-app-home .zs-home2-art{position:absolute;top:50%;right:clamp(10px,3vw,40px);width:min(40%,250px);height:150px;margin-top:-75px;display:grid;place-items:center;pointer-events:none}
html .zs-app-home .zs-home2-ring{position:absolute;width:142px;height:142px;border:1.5px dashed color-mix(in srgb,var(--zh2-b) 55%,transparent);border-radius:50%;animation:zh2-spin 24s linear infinite!important}
html .zs-app-home .zs-home2-ring--2{width:98px;height:98px;border-style:solid;border-color:color-mix(in srgb,var(--zh2-c) 28%,transparent);animation:zh2-unspin 16s linear infinite!important}
html .zs-app-home .zs-home2-core{position:relative;z-index:2;display:grid;place-items:center;width:62px;height:62px;border-radius:20px;background:#fff;box-shadow:0 16px 34px rgba(30,16,90,.4),0 0 0 6px color-mix(in srgb,var(--zh2-b) 22%,transparent);animation:zh2-float 5.5s ease-in-out infinite!important}
html .zs-app-home .zs-home2-core img{width:38px;height:38px}
html .zs-app-home .zs-home2-orb{position:absolute;z-index:3;display:grid;place-items:center;width:38px;height:38px;border-radius:13px;background:var(--zs-surface,#12141f);border:1px solid var(--zh2-line);color:#8f7bff;box-shadow:0 10px 24px rgba(10,6,40,.28);animation:zh2-float 5s ease-in-out infinite!important}
html .zs-app-home .zs-home2-orb svg{width:19px;height:19px}
html .zs-app-home .zs-home2-orb--wa{top:2px;left:16%;color:#25d366;animation-delay:-.8s!important}
html .zs-app-home .zs-home2-orb--tg{top:10px;right:10%;color:#2aabee;animation-delay:-2.2s!important}
html .zs-app-home .zs-home2-orb--ai{bottom:4px;left:10%;animation-delay:-3.3s!important}
html .zs-app-home .zs-home2-orb--chart{bottom:10px;right:16%;color:#ffb347;animation-delay:-1.5s!important}
html .zs-app-home .zs-home2-chip{position:absolute;z-index:4;left:-6%;top:44%;display:inline-flex;align-items:center;gap:6px;padding:7px 11px;border-radius:999px;background:var(--zh2-brand);color:#fff;font-size:11.5px;font-weight:750;white-space:nowrap;box-shadow:0 12px 26px var(--zh2-ring);opacity:0;animation:zh2-pop 6.5s cubic-bezier(.2,.8,.2,1) infinite!important}
html .zs-app-home .zs-home2-chip svg{width:13px;height:13px}

/* ---- AI token card ---- */
html .zs-app-home .zs-ai-token-card{border:1px solid var(--zh2-line);border-radius:24px;box-shadow:0 14px 38px rgba(10,8,34,.14)}
html .zs-app-home .zs-ai-token-card__icon{background:var(--zh2-brand);color:#fff;border-radius:14px;box-shadow:0 10px 22px var(--zh2-ring);animation:zh2-bob 4.4s ease-in-out infinite!important}
html .zs-app-home .zs-ai-token-card__value{letter-spacing:-.035em;font-variant-numeric:tabular-nums}
html .zs-app-home .zs-ai-token-card__track{height:9px;border-radius:999px;overflow:hidden}
html .zs-app-home .zs-ai-token-card__fill{border-radius:999px;background:linear-gradient(90deg,var(--zh2-a),var(--zh2-b),var(--zh2-c),var(--zh2-b),var(--zh2-a));background-size:200% 100%;animation:zh2-shine 4s linear infinite!important}

/* ---- Channels ---- */
html .zs-app-home .zs-app-home__h2{font-size:20px;letter-spacing:-.02em;font-weight:780}
html .zs-app-home .zs-channel{border:1px solid var(--zh2-line);border-radius:22px;transition:transform .2s,border-color .2s,box-shadow .2s}
html .zs-app-home .zs-channel:hover{transform:translateY(-3px);border-color:var(--zh2-ring);box-shadow:0 18px 40px rgba(10,8,34,.2)}
html .zs-app-home .zs-app-chcard__status::before{animation:zh2-dot 2.2s ease-out infinite!important}
html .zs-app-home .zs-app-chcard__title{letter-spacing:-.015em}

/* ---- Shortcuts become tiles ---- */
html .zs-app-home .zs-app-home__quick{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px;margin:0;padding:0}
html .zs-app-home .zs-app-home__qa{position:relative;display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:12px;min-height:68px;padding:14px 16px;border:1px solid var(--zh2-line);border-radius:18px;background:var(--zs-surface,#12141f);color:var(--zs-text,#fff);font-size:14.5px;font-weight:700;text-align:left;text-decoration:none;transition:transform .2s,border-color .2s,box-shadow .2s}
html .zs-app-home .zs-app-home__qa:hover{transform:translateY(-3px);border-color:var(--zh2-ring);box-shadow:0 16px 34px rgba(10,8,34,.2)}
html .zs-app-home .zs-app-home__qa::after{content:"";margin-left:auto;width:8px;height:8px;border-top:2px solid currentColor;border-right:2px solid currentColor;transform:rotate(45deg);opacity:.35;transition:transform .2s,opacity .2s}
html .zs-app-home .zs-app-home__qa:hover::after{opacity:.8;transform:translateX(3px) rotate(45deg)}
html .zs-app-home .zs-app-home__qaicon{flex:none;width:42px;height:42px;border-radius:14px;animation:zh2-bob 4.6s ease-in-out infinite!important}
html .zs-app-home .zs-app-home__qa:nth-child(2) .zs-app-home__qaicon{animation-delay:-1.1s!important}html .zs-app-home .zs-app-home__qa:nth-child(3) .zs-app-home__qaicon{animation-delay:-2.2s!important}html .zs-app-home .zs-app-home__qa:nth-child(4) .zs-app-home__qaicon{animation-delay:-3.3s!important}

/* ---- Install card ---- */
html .zs-app-home .zs-app-home__install{border:1px solid var(--zh2-line);border-radius:22px;background:linear-gradient(120deg,color-mix(in srgb,var(--zh2-b) 9%,var(--zs-surface,#12141f)),var(--zs-surface,#12141f) 60%)}
html .zs-app-home .zs-app-home__installtitle{letter-spacing:-.015em}

@media(max-width:760px){
  html .zs-app-home .zs-app-home__hello{min-height:132px;padding:18px 16px;padding-right:128px;border-radius:22px;margin-bottom:14px}
  html .zs-app-home .zs-app-home__title{font-size:clamp(23px,7vw,30px)}
  html .zs-app-home .zs-home2-art{right:2px;width:124px;height:124px;margin-top:-62px}
  html .zs-app-home .zs-home2-ring{width:108px;height:108px}html .zs-app-home .zs-home2-ring--2{width:76px;height:76px}
  html .zs-app-home .zs-home2-core{width:48px;height:48px;border-radius:16px}html .zs-app-home .zs-home2-core img{width:30px;height:30px}
  html .zs-app-home .zs-home2-orb{width:30px;height:30px;border-radius:10px}html .zs-app-home .zs-home2-orb svg{width:15px;height:15px}
  html .zs-app-home .zs-home2-chip{display:none}
  html .zs-app-home .zs-app-home__quick{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  html .zs-app-home .zs-app-home__qa{min-height:60px;padding:12px;font-size:13.5px;gap:10px}
  html .zs-app-home .zs-app-home__qaicon{width:36px;height:36px;border-radius:12px}
  html .zs-app-home .zs-app-home__qa::after{display:none}
}


/* ==========================================================================
   Pages · 2026-11 polish: one look for the page headers (banner with a small animated illustration), livelier
   cards and rows, gentle entrance. Styling only: no wording, markup or behaviour changes. Motion is stated with
   !important so it also plays on phones set to "reduce motion" (owner request), like the dashboard above.
   ========================================================================== */
.zs-screen{--zp2-a:#b12bf2;--zp2-b:#6a4dff;--zp2-c:#19b6ff;--zp2-brand:linear-gradient(100deg,var(--zp2-a) 0%,var(--zp2-b) 52%,var(--zp2-c) 100%);--zp2-ring:rgba(106,77,255,.24);--zp2-line:color-mix(in srgb,var(--zs-text,#fff) 10%,transparent);--zp2-ico:none}
@keyframes zp2-rise{0%{opacity:0;transform:translateY(14px)}100%{opacity:1;transform:none}}
@keyframes zp2-float{0%,100%{transform:translateY(0) rotate(0)}50%{transform:translateY(-7px) rotate(-4deg)}}
@keyframes zp2-spin{to{transform:rotate(360deg)}}
@keyframes zp2-bob{0%,100%{transform:translateY(0)}50%{transform:translateY(-3px)}}

/* Sections arrive one after another */
html .zs-screen>:is(.zs-anl,.zs-transaction-history,.zs-support,.zs-settings,.zs-wallet,.zs-billing,.zs-ai-hub,.zs-notify-page)>*{animation:zp2-rise .55s cubic-bezier(.2,.8,.2,1) both!important}
html .zs-screen>:is(.zs-anl,.zs-transaction-history,.zs-support,.zs-settings,.zs-wallet,.zs-billing,.zs-ai-hub,.zs-notify-page)>:nth-child(2){animation-delay:.05s!important}
html .zs-screen>:is(.zs-anl,.zs-transaction-history,.zs-support,.zs-settings,.zs-wallet,.zs-billing,.zs-ai-hub,.zs-notify-page)>:nth-child(3){animation-delay:.1s!important}
html .zs-screen>:is(.zs-anl,.zs-transaction-history,.zs-support,.zs-settings,.zs-wallet,.zs-billing,.zs-ai-hub,.zs-notify-page)>:nth-child(4){animation-delay:.15s!important}
html .zs-screen>:is(.zs-anl,.zs-transaction-history,.zs-support,.zs-settings,.zs-wallet,.zs-billing,.zs-ai-hub,.zs-notify-page)>:nth-child(n+5){animation-delay:.2s!important}

/* ---- Page header banner ---- */
html .zs-screen :is(.zs-anl-title,.zs-transaction-history>header,.zs-support__head,.zs-settings__hero,.zs-wallet-header,.zs-bill-header,.zs-ai-header){position:relative;isolation:isolate;overflow:hidden;min-height:112px;margin:0 0 18px;padding:22px 150px 22px 26px;border:1.5px solid transparent;border-radius:24px;background:radial-gradient(300px 190px at 100% 0,color-mix(in srgb,var(--zp2-b) 24%,transparent),transparent 72%) padding-box,radial-gradient(260px 160px at 0 120%,color-mix(in srgb,var(--zp2-a) 13%,transparent),transparent 70%) padding-box,linear-gradient(var(--zs-surface,#131318),var(--zs-surface,#131318)) padding-box,var(--zp2-brand) border-box;box-shadow:0 18px 46px var(--zp2-ring)}
html .zs-screen :is(.zs-anl-title,.zs-transaction-history>header,.zs-support__head,.zs-settings__hero){display:grid;align-content:center;gap:4px}
html .zs-screen :is(.zs-anl-title,.zs-transaction-history>header,.zs-support__head,.zs-settings__hero,.zs-wallet-header,.zs-bill-header,.zs-ai-header) h1{margin:0;font-size:clamp(24px,3.4vw,34px);line-height:1.12;letter-spacing:-.035em;font-weight:800}
html .zs-screen :is(.zs-anl-title,.zs-transaction-history>header,.zs-support__head,.zs-settings__hero,.zs-wallet-header,.zs-bill-header,.zs-ai-header) p{margin:4px 0 0;font-size:14.5px;line-height:1.5;color:var(--zs-text-secondary,#a9adc2)}
html .zs-screen :is(.zs-history-eyebrow,.zs-support__eyebrow,.zs-settings__eyebrow){justify-self:start;margin-bottom:6px;padding:5px 10px;border:1px solid var(--zp2-line);border-radius:999px;background:color-mix(in srgb,var(--zs-text,#fff) 4%,transparent);font-size:10.5px;font-weight:750;letter-spacing:.12em;color:var(--zs-text-secondary,#a9adc2)}
/* the illustration: a slow dashed ring with a floating brand tile carrying the page's own icon */
html .zs-screen :is(.zs-anl-title,.zs-transaction-history>header,.zs-support__head,.zs-settings__hero,.zs-wallet-header,.zs-bill-header,.zs-ai-header)::before{content:"";position:absolute;z-index:-1;top:calc(50% - 50px);right:28px;width:100px;height:100px;border:1.5px dashed color-mix(in srgb,var(--zp2-b) 55%,transparent);border-radius:50%;box-shadow:inset 0 0 0 17px color-mix(in srgb,var(--zp2-c) 7%,transparent);animation:zp2-spin 22s linear infinite!important;pointer-events:none}
html .zs-screen :is(.zs-anl-title,.zs-transaction-history>header,.zs-support__head,.zs-settings__hero,.zs-wallet-header,.zs-bill-header,.zs-ai-header)::after{content:"";position:absolute;top:calc(50% - 27px);right:51px;width:54px;height:54px;border-radius:18px;background:var(--zp2-ico) center/26px 26px no-repeat,var(--zp2-brand);box-shadow:0 14px 30px var(--zp2-ring),0 0 0 6px color-mix(in srgb,var(--zp2-b) 16%,transparent);animation:zp2-float 5.5s ease-in-out infinite!important;pointer-events:none}
html .zs-screen .zs-anl-title{--zp2-ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 20h18M7 20v-7M12 20V5M17 20v-10'/%3E%3C/svg%3E")}
html .zs-screen .zs-transaction-history>header{--zp2-ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 20V4M7 4L3 8M7 4l4 4M17 4v16M17 20l-4-4M17 20l4-4'/%3E%3C/svg%3E")}
html .zs-screen .zs-support__head{--zp2-ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Ccircle cx='12' cy='12' r='3.5'/%3E%3Cpath d='M5.6 5.6l3.9 3.9M14.5 14.5l3.9 3.9M18.4 5.6l-3.9 3.9M9.5 14.5l-3.9 3.9'/%3E%3C/svg%3E")}
html .zs-screen .zs-settings__hero{--zp2-ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h8M18 7h2M4 17h2M12 17h8'/%3E%3Ccircle cx='15' cy='7' r='2.6'/%3E%3Ccircle cx='9' cy='17' r='2.6'/%3E%3C/svg%3E")}
html .zs-screen .zs-wallet-header{--zp2-ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 17l6-6 4 4 8-8'/%3E%3Cpath d='M15 7h6v6'/%3E%3C/svg%3E")}
html .zs-screen .zs-bill-header{--zp2-ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l7 3v5c0 4.6-3 8-7 10-4-2-7-5.4-7-10V6z'/%3E%3Cpath d='M9 12l2.2 2.2L15.2 10'/%3E%3C/svg%3E")}
html .zs-screen .zs-ai-header{--zp2-ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 4h14a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-7l-5 4v-4H5a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2z'/%3E%3Cpath d='M8.5 10h7'/%3E%3C/svg%3E")}
/* headers that already carry an icon tile on the left */
html .zs-screen :is(.zs-wallet-header__icon,.zs-bill-header__icon,.zs-ai-header__icon){background:var(--zp2-brand);color:#fff;border-radius:16px;box-shadow:0 10px 24px var(--zp2-ring);animation:zp2-bob 4.4s ease-in-out infinite!important}

/* ---- Analytics ---- */
html .zs-screen .zs-anl-kpi .zs-stat{position:relative;overflow:hidden;border-radius:20px;transition:transform .2s,box-shadow .2s,border-color .2s}
html .zs-screen .zs-anl-kpi .zs-stat::before{content:"";position:absolute;inset:0 0 auto;height:3px;background:var(--zp2-brand);opacity:.85}
html .zs-screen .zs-anl-kpi .zs-stat:hover{transform:translateY(-3px);border-color:var(--zp2-ring);box-shadow:0 16px 36px rgba(10,8,34,.2)}
html .zs-screen .zs-anl-kpi .zs-stat__value{letter-spacing:-.03em}
html .zs-screen .zs-anl-controls{border-radius:20px}

/* ---- Transaction history ---- */
html .zs-screen .zs-history-notice{margin:0 0 14px;border-radius:16px}
html .zs-screen .zs-history-filters{margin:0 0 14px;border-radius:20px}
html .zs-screen .zs-history-filters :is(input,select),html .zs-screen .zs-transaction-history button{border-radius:12px}
html .zs-screen .zs-history-filters button[type=submit]{border-color:transparent;background:var(--zp2-brand);color:#fff;box-shadow:0 10px 24px var(--zp2-ring);transition:transform .2s,filter .2s}
html .zs-screen .zs-history-filters button[type=submit]:hover{transform:translateY(-2px);filter:brightness(1.08)}
html .zs-screen .zs-history-results{margin:0 0 10px}
html .zs-screen .zs-history-list{border-radius:20px}
html .zs-screen .zs-history-row{position:relative;padding-left:70px;transition:background-color .2s}
html .zs-screen .zs-history-row:hover{background:color-mix(in srgb,var(--zp2-b) 7%,transparent)}
html .zs-screen .zs-history-row::before{content:"";position:absolute;left:16px;top:18px;width:40px;height:40px;border-radius:13px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238f7bff' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 20V4M7 4L3 8M7 4l4 4M17 4v16M17 20l-4-4M17 20l4-4'/%3E%3C/svg%3E") center/20px 20px no-repeat,color-mix(in srgb,var(--zp2-b) 15%,transparent)}
html .zs-screen .zs-history-row>*{min-width:0}
html .zs-screen .zs-history-status{padding:4px 10px;font-weight:650}

/* ---- Settings ---- */
html .zs-screen :is(.zs-settings__row,.zs-settings__profile){transition:background-color .2s,transform .2s}
html .zs-screen :is(.zs-settings__row,.zs-settings__profile):hover{background:color-mix(in srgb,var(--zp2-b) 8%,transparent)}
html .zs-screen .zs-settings__row>.zi:last-child,html .zs-screen .zs-settings__profile>.zi:last-child{transition:transform .2s}
html .zs-screen .zs-settings__row:hover>.zi:last-child,html .zs-screen .zs-settings__profile:hover>.zi:last-child{transform:translateX(4px)}
html .zs-screen .zs-settings__row-icon{border-radius:13px;transition:transform .2s}
html .zs-screen .zs-settings__row:hover .zs-settings__row-icon{transform:scale(1.08) rotate(-4deg)}

/* ---- Support ---- */
html .zs-screen .zs-support__card{border-radius:22px}

/* ---- Cards everywhere on these pages ---- */
html .zs-screen :is(.zs-billing,.zs-ai-hub,.zs-wallet)>.zs-card{transition:transform .2s,box-shadow .2s}
html .zs-screen :is(.zs-billing,.zs-ai-hub)>.zs-card:hover{transform:translateY(-2px);box-shadow:0 16px 36px rgba(10,8,34,.18)}

@media(max-width:760px){
  html .zs-screen :is(.zs-anl-title,.zs-transaction-history>header,.zs-support__head,.zs-settings__hero,.zs-wallet-header,.zs-bill-header,.zs-ai-header){min-height:96px;margin-bottom:14px;padding:16px 92px 16px 16px;border-radius:20px}
  html .zs-screen :is(.zs-anl-title,.zs-transaction-history>header,.zs-support__head,.zs-settings__hero,.zs-wallet-header,.zs-bill-header,.zs-ai-header) h1{font-size:clamp(21px,6.2vw,26px)}
  html .zs-screen :is(.zs-anl-title,.zs-transaction-history>header,.zs-support__head,.zs-settings__hero,.zs-wallet-header,.zs-bill-header,.zs-ai-header) p{font-size:13.5px}
  html .zs-screen :is(.zs-anl-title,.zs-transaction-history>header,.zs-support__head,.zs-settings__hero,.zs-wallet-header,.zs-bill-header,.zs-ai-header)::before{top:calc(50% - 36px);right:10px;width:72px;height:72px;box-shadow:inset 0 0 0 12px color-mix(in srgb,var(--zp2-c) 7%,transparent)}
  html .zs-screen :is(.zs-anl-title,.zs-transaction-history>header,.zs-support__head,.zs-settings__hero,.zs-wallet-header,.zs-bill-header,.zs-ai-header)::after{top:calc(50% - 20px);right:26px;width:40px;height:40px;border-radius:13px;background-size:20px 20px,auto}
  html .zs-screen :is(.zs-wallet-header__icon,.zs-bill-header__icon,.zs-ai-header__icon){display:none}
  html .zs-screen .zs-history-row{padding-left:58px}
  html .zs-screen .zs-history-row::before{left:12px;top:14px;width:36px;height:36px;border-radius:12px}
}
/* ==========================================================================
   Channels · 2026-11 polish: WhatsApp / Telegram welcome panel, chat lists and the AI Sender hub.
   Styling only. Motion is stated with !important so it also plays with "reduce motion" on (owner request).
   ========================================================================== */
@keyframes zc2-float{0%,100%{transform:translateY(0)}50%{transform:translateY(-9px)}}
@keyframes zc2-orb{0%,100%{transform:translateY(0) rotate(0)}50%{transform:translateY(-7px) rotate(-6deg)}}
@keyframes zc2-talk{0%,12%{transform:scale(0)}24%,82%{transform:scale(1)}94%,100%{transform:scale(0)}}
@keyframes zc2-pop{0%,55%{transform:scale(0)}68%{transform:scale(1.18)}78%,100%{transform:scale(1)}}
@keyframes zc2-rise{0%{opacity:0;transform:translateY(14px)}100%{opacity:1;transform:none}}
@keyframes zc2-spin{to{transform:rotate(346deg)}}

/* ---- Welcome panel (shown on desktop when no chat is open) ---- */
html .zs-chintro{position:relative;overflow:hidden;isolation:isolate;gap:12px}
html .zs-chintro::before{content:"";position:absolute;z-index:-1;left:50%;top:38%;width:560px;height:560px;margin:-280px 0 0 -280px;border-radius:50%;background:radial-gradient(closest-side,color-mix(in srgb,#6a4dff 17%,transparent),transparent);pointer-events:none}
html .zs-chintro>*{animation:zc2-rise .6s cubic-bezier(.2,.8,.2,1) both!important}
html .zs-chintro>:nth-child(2){animation-delay:.08s!important}html .zs-chintro>:nth-child(3){animation-delay:.14s!important}html .zs-chintro>:nth-child(4){animation-delay:.2s!important}
html .zs-chintro .zs-chintro__art{position:relative;margin-bottom:22px}
html .zs-chintro .zs-chintro__art svg{overflow:visible;animation:zc2-float 6s ease-in-out infinite!important;filter:drop-shadow(0 22px 34px rgba(8,6,30,.28))}
/* the little chat bubbles on both screens take turns, like a conversation */
html .zs-chintro .zs-chintro__art svg rect:nth-of-type(n+4):not(:nth-of-type(7)):not(:nth-of-type(8)){transform-box:fill-box;transform-origin:center;animation:zc2-talk 5.4s ease-in-out infinite!important}
html .zs-chintro .zs-chintro__art svg rect:nth-of-type(5){animation-delay:.7s!important}html .zs-chintro .zs-chintro__art svg rect:nth-of-type(6){animation-delay:1.4s!important}
html .zs-chintro .zs-chintro__art svg rect:nth-of-type(9){animation-delay:.9s!important}html .zs-chintro .zs-chintro__art svg rect:nth-of-type(10){animation-delay:1.6s!important}
html .zs-chintro .zs-chintro__art svg circle:last-of-type,html .zs-chintro .zs-chintro__art svg path{transform-box:fill-box;transform-origin:center;animation:zc2-pop 5.4s cubic-bezier(.2,.8,.2,1) infinite!important}
html .zs-chintro .zs-chintro__orb{position:absolute;z-index:2;display:grid;place-items:center;width:46px;height:46px;border-radius:16px;color:#fff;background:linear-gradient(135deg,#b12bf2,#6a4dff 55%,#19b6ff);box-shadow:0 14px 30px rgba(106,77,255,.34);animation:zc2-orb 5s ease-in-out infinite!important}
html .zs-chintro .zs-chintro__orb svg{width:22px;height:22px;animation:none!important;filter:none}
html .zs-chintro .zs-chintro__orb--ch{left:-4%;top:6%;background:var(--zs-wa-accent,#25d366)}
html .zs-chintro--tg .zs-chintro__orb--ch{background:var(--zs-tg-accent,#2aabee)}
html .zs-chintro .zs-chintro__orb--ai{right:-7%;bottom:-2%;width:40px;height:40px;border-radius:14px;animation-delay:-2.4s!important}
html .zs-chintro:not(.zs-chintro--tg) .zs-chintro__title{font-size:28px;line-height:36px;font-weight:700;letter-spacing:-.03em}
html .zs-chintro .zs-chintro__text{font-size:14.5px;line-height:22px}
html .zs-chintro:not(.zs-chintro--tg) .zs-chintro__foot{margin-top:22px;padding:7px 13px;border:1px solid color-mix(in srgb,currentColor 18%,transparent);border-radius:999px;font-size:12.5px}

/* ---- Chat lists ---- */
html .zs-wa-row,html .zs-tg-row{transition:background-color .18s}
@media(hover:hover){
  html .zs-wa-row:hover:not(.is-selected){background:color-mix(in srgb,var(--zs-wa-text,#fff) 5%,transparent)}
  html .zs-wa-row .zs-avatar,html .zs-tg-row .zs-avatar{transition:transform .2s}
  html .zs-wa-row:hover .zs-avatar,html .zs-tg-row:hover .zs-avatar{transform:scale(1.05)}
  html .zs-wa-chip{transition:transform .18s,background-color .18s}
  html .zs-wa-chip:hover{transform:translateY(-1px)}
}

/* ---- AI Sender hub ---- */
html .zs-ai-sender__hub>*{animation:zc2-rise .6s cubic-bezier(.2,.8,.2,1) both!important}
html .zs-ai-sender__hub>:nth-child(2){animation-delay:.1s!important}
html .zs-ai-sender__hub .zs-ai-sender__hub-hero{border:1.5px solid transparent;background:radial-gradient(360px 240px at 100% 0,rgba(106,77,255,.3),transparent 70%) padding-box,linear-gradient(120deg,#181b30,#201b36) padding-box,linear-gradient(100deg,#b12bf2 0%,#6a4dff 52%,#19b6ff 100%) border-box;box-shadow:0 22px 56px rgba(106,77,255,.24)}
html .zs-ai-sender__hub .zs-ai-sender__hub-ring{animation:zc2-spin 26s linear infinite!important}
html .zs-ai-sender__hub .zs-ai-sender__hub-brand{background:linear-gradient(135deg,#b12bf2,#6a4dff 55%,#19b6ff);box-shadow:0 18px 40px rgba(106,77,255,.42),0 0 0 8px rgba(106,77,255,.14);animation:zc2-float 5.5s ease-in-out infinite!important}
html .zs-ai-sender__hub .zs-ai-sender__hub-float{animation:zc2-orb 5s ease-in-out infinite!important}
html .zs-ai-sender__hub .zs-ai-sender__hub-float--tg{animation-delay:-2.4s!important}
html .zs-ai-sender__hub .zs-ai-sender__hub-card{transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease!important}
html .zs-ai-sender__hub .zs-ai-sender__hub-card:hover{transform:translateY(-4px);box-shadow:0 22px 46px rgba(10,8,34,.26)}
html .zs-ai-sender__hub .zs-ai-sender__hub-cta svg{transition:transform .2s}
html .zs-ai-sender__hub .zs-ai-sender__hub-card:hover .zs-ai-sender__hub-cta svg{transform:translateX(4px)}

/* Dashboard channel cards: the channel's own profile picture (set in WhatsApp / on the Telegram bot) */
.zs-app-chcard__pic{position:relative;display:inline-block;flex:none;width:44px;height:44px}
.zs-app-chcard__pic img{display:block;width:44px;height:44px;border-radius:50%;object-fit:cover;box-shadow:0 0 0 2px rgba(255,255,255,.16),0 6px 16px rgba(0,0,0,.25)}
.zs-app-chcard__picbadge{position:absolute;right:-5px;bottom:-5px;display:grid;place-items:center;width:21px;height:21px;border-radius:50%;border:2px solid var(--zs-surface,#14141c)}
.zs-app-chcard__picbadge .zi{width:11px;height:11px}
.zs-app-chcard__pic.is-nopic img{display:none}
.zs-app-chcard__pic.is-nopic .zs-app-chcard__picbadge{position:static;width:44px;height:44px;border:0;border-radius:14px}
.zs-app-chcard__pic.is-nopic .zs-app-chcard__picbadge .zi{width:24px;height:24px}

/* ==========================================================================
   Coming soon · Aurora Orbit (zs-cs2) · 2026-11 redesign
   Dark brand page with icons circling the feature. On phones the page is fixed to the screen and never scrolls.
   Motion is wanted by the owner on every device, so the animations are forced.
   ========================================================================== */
.zs-cs2 { --cs2-orb: clamp(170px, 30vh, 250px); box-sizing: border-box; position: relative; isolation: isolate; display: flex; flex-direction: column; align-items: center; gap: 0; width: 100%; max-width: 760px; min-height: min(82vh, 780px); margin: 0 auto; padding: 26px clamp(20px, 4vw, 44px) 28px; border-radius: 30px; overflow: hidden; text-align: center; color: #fff; background: #0a0920; box-shadow: 0 40px 90px -40px rgb(106 77 255 / 60%), inset 0 0 0 1px rgb(255 255 255 / 8%); font-family: inherit; }
.zs-cs2 *, .zs-cs2 *::before, .zs-cs2 *::after { box-sizing: border-box; }
.zs-cs2__bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.zs-cs2__glow { position: absolute; border-radius: 50%; filter: blur(60px); }
.zs-cs2__glow--a { left: 50%; top: -22%; width: 110%; height: 62%; margin-left: -55%; background: radial-gradient(closest-side, rgb(124 92 255 / 75%), transparent); }
.zs-cs2__glow--b { right: -30%; bottom: -18%; width: 80%; height: 50%; background: radial-gradient(closest-side, rgb(25 182 255 / 42%), transparent); }
.zs-cs2__glow--c { left: -30%; bottom: -14%; width: 80%; height: 46%; background: radial-gradient(closest-side, rgb(177 43 242 / 40%), transparent); }
.zs-cs2__star { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #fff; opacity: .15; }
.zs-cs2__ic { display: block; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.zs-cs2__top { display: flex; align-items: center; justify-content: space-between; width: 100%; flex: none; }
.zs-cs2__back, .zs-cs2__top-pad { width: 40px; height: 40px; flex: none; }
.zs-cs2__back { display: grid; place-items: center; border-radius: 14px; color: #fff; background: rgb(255 255 255 / 9%); border: 1px solid rgb(255 255 255 / 16%); text-decoration: none; transition: background .18s ease, transform .18s ease; }
.zs-cs2__back:hover { background: rgb(255 255 255 / 16%); }
.zs-cs2__back:active { transform: scale(.94); }
.zs-cs2__brand { display: inline-flex; align-items: center; gap: 8px; font-size: 15.5px; font-weight: 800; letter-spacing: -.01em; color: #fff; }
.zs-cs2__brand img { width: 26px; height: 26px; border-radius: 8px; background: #fff; padding: 2px; }

.zs-cs2__orb { position: relative; flex: none; width: var(--cs2-orb); height: var(--cs2-orb); margin: clamp(22px, 5vh, 46px) 0 clamp(26px, 5vh, 44px); }
.zs-cs2__ring { position: absolute; inset: 0; border-radius: 50%; border: 1.5px dashed rgb(255 255 255 / 28%); }
.zs-cs2__ring--in { inset: 16%; border-style: solid; border-color: rgb(255 255 255 / 12%); }
.zs-cs2__ping { position: absolute; inset: 29%; border-radius: 30%; border: 1.5px solid rgb(138 107 255 / 70%); opacity: 0; }
.zs-cs2__core { position: absolute; left: 50%; top: 50%; width: 42%; height: 42%; transform: translate(-50%, -50%); display: grid; place-items: center; border-radius: 29%; color: #fff; background: linear-gradient(100deg, #b12bf2 0%, #6a4dff 52%, #19b6ff 100%); box-shadow: 0 0 0 10px rgb(255 255 255 / 7%), 0 0 80px rgb(124 92 255 / 85%), inset 0 1px 0 rgb(255 255 255 / 35%); }
.zs-cs2__core .zs-cs2__ic { width: 46%; height: 46%; }
.zs-cs2__spin { position: absolute; inset: 0; border-radius: 50%; }
.zs-cs2__sat { position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; margin: -22px; transform: rotate(var(--a)) translateY(calc(var(--cs2-orb) / -2)) rotate(calc(var(--a) * -1)); }
.zs-cs2__sat-in { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; color: #fff; background: var(--c); border: 2px solid rgb(255 255 255 / 88%); box-shadow: 0 10px 22px rgb(0 0 0 / 40%), 0 0 22px color-mix(in srgb, var(--c) 60%, transparent); }

.zs-cs2__body { display: flex; flex-direction: column; align-items: center; min-height: 0; }
.zs-cs2__pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: rgb(255 255 255 / 10%); border: 1px solid rgb(255 255 255 / 20%); font-size: 11.5px; line-height: 16px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; color: #fff; }
.zs-cs2__dot { width: 8px; height: 8px; border-radius: 50%; background: #7ef0b2; box-shadow: 0 0 0 4px rgb(126 240 178 / 22%); }
.zs-cs2__title { margin: 14px 0 0; font-size: clamp(28px, 4.6vw, 42px); line-height: 1.1; font-weight: 800; letter-spacing: -.03em; color: #fff; text-wrap: balance; outline: none; }
.zs-cs2__name { display: block; background: linear-gradient(100deg, #c77bff, #8a6bff 50%, #4fc8ff, #c77bff); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.zs-cs2__sub { max-width: 460px; margin: 12px 0 0; font-size: 15px; line-height: 1.55; color: rgb(255 255 255 / 76%); text-wrap: pretty; }
.zs-cs2__feats { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.zs-cs2__feats li { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; font-size: 12.5px; line-height: 16px; font-weight: 600; white-space: nowrap; color: #fff; background: rgb(255 255 255 / 9%); border: 1px solid rgb(255 255 255 / 16%); }
.zs-cs2__feats .zs-cs2__ic { color: #b9a6ff; }

.zs-cs2__foot { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 100%; margin-top: auto; padding-top: 26px; }
.zs-cs2__btn { position: relative; display: flex; align-items: center; justify-content: center; width: min(100%, 380px); height: 54px; border-radius: 17px; overflow: hidden; font-size: 15.5px; font-weight: 750; color: #fff; text-decoration: none; background: linear-gradient(100deg, #b12bf2 0%, #6a4dff 52%, #19b6ff 100%); box-shadow: 0 16px 34px -12px rgb(106 77 255 / 85%), inset 0 1px 0 rgb(255 255 255 / 30%); transition: transform .18s ease, box-shadow .18s ease; }
.zs-cs2__btn:hover { color: #fff; transform: translateY(-1px); }
.zs-cs2__btn:active { transform: scale(.98); }
.zs-cs2__btn::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; transform: skewX(-20deg); background: linear-gradient(90deg, transparent, rgb(255 255 255 / 35%), transparent); }
.zs-cs2__btn span { position: relative; z-index: 1; }
.zs-cs2__note { margin: 0; font-size: 12.5px; line-height: 18px; color: rgb(255 255 255 / 55%); }
.zs-cs2 .zs-cs__admin { width: min(100%, 480px); margin-top: 4px; padding: 12px 16px; gap: 7px; border-color: rgb(255 255 255 / 26%); background: rgb(255 255 255 / 6%); color: #fff; }
.zs-cs2 .zs-cs__admin-text { color: rgb(255 255 255 / 78%); }
.zs-cs2 .zs-cs__admin .zs-link { color: #c9b8ff; }

/* Motion */
@keyframes zs-cs2-spin { to { transform: rotate(360deg); } }
@keyframes zs-cs2-unspin { to { transform: rotate(-360deg); } }
@keyframes zs-cs2-core { 0%, 100% { transform: translate(-50%, -50%) scale(1); } 50% { transform: translate(-50%, -50%) scale(1.06); } }
@keyframes zs-cs2-ping { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(2.2); opacity: 0; } }
@keyframes zs-cs2-star { 0%, 100% { opacity: .12; transform: scale(1); } 50% { opacity: .9; transform: scale(1.7); } }
@keyframes zs-cs2-drift { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(4%, 6%, 0); } }
@keyframes zs-cs2-dot { 0%, 100% { box-shadow: 0 0 0 3px rgb(126 240 178 / 26%); } 50% { box-shadow: 0 0 0 7px rgb(126 240 178 / 0%); } }
@keyframes zs-cs2-sheen { 0%, 55% { left: -60%; } 100% { left: 130%; } }
@keyframes zs-cs2-name { to { background-position: -220% 0; } }
@keyframes zs-cs2-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes zs-cs2-pop { from { opacity: 0; transform: scale(.7); } to { opacity: 1; transform: scale(1); } }
html .zs-cs2 .zs-cs2__spin { animation: zs-cs2-spin 26s linear infinite !important; }
html .zs-cs2 .zs-cs2__sat-in { animation: zs-cs2-unspin 26s linear infinite !important; }
html .zs-cs2 .zs-cs2__ring { animation: zs-cs2-unspin 60s linear infinite !important; }
html .zs-cs2 .zs-cs2__core { animation: zs-cs2-core 3.6s ease-in-out infinite !important; }
html .zs-cs2 .zs-cs2__ping { animation: zs-cs2-ping 3.2s ease-out infinite !important; }
html .zs-cs2 .zs-cs2__ping--2 { animation-delay: 1.6s !important; }
html .zs-cs2 .zs-cs2__star { animation: zs-cs2-star 3.4s ease-in-out infinite !important; animation-delay: calc(var(--i) * -.55s) !important; }
html .zs-cs2 .zs-cs2__glow { animation: zs-cs2-drift 12s ease-in-out infinite !important; }
html .zs-cs2 .zs-cs2__glow--b { animation-duration: 15s !important; animation-direction: reverse !important; }
html .zs-cs2 .zs-cs2__dot { animation: zs-cs2-dot 1.8s ease-in-out infinite !important; }
html .zs-cs2 .zs-cs2__btn::after { animation: zs-cs2-sheen 3.6s ease-in-out infinite !important; }
html .zs-cs2 .zs-cs2__name { animation: zs-cs2-name 6s linear infinite !important; }
html .zs-cs2 .zs-cs2__orb { animation: zs-cs2-pop .7s cubic-bezier(.2, .9, .3, 1.2) both !important; }
html .zs-cs2 .zs-cs2__pill, html .zs-cs2 .zs-cs2__title, html .zs-cs2 .zs-cs2__sub, html .zs-cs2 .zs-cs2__feats li, html .zs-cs2 .zs-cs2__foot { animation: zs-cs2-up .6s ease both !important; }
html .zs-cs2 .zs-cs2__pill { animation-delay: .15s !important; }
html .zs-cs2 .zs-cs2__title { animation-delay: .24s !important; }
html .zs-cs2 .zs-cs2__sub { animation-delay: .33s !important; }
html .zs-cs2 .zs-cs2__feats li { animation-delay: calc(.42s + var(--i) * .08s) !important; }
html .zs-cs2 .zs-cs2__foot { animation-delay: .62s !important; }

/* Desktop: no back arrow needed (the menu is beside the page). */
@media (min-width: 769px) { .zs-cs2__back { visibility: hidden; } }

/* Phones and small tablets: one fixed screen, nothing scrolls. */
@media (max-width: 768px) {
  .zs-cs2 { --cs2-orb: clamp(132px, 27dvh, 232px); position: fixed; inset: 0; z-index: 390; max-width: none; min-height: 0; height: 100vh; height: 100dvh; margin: 0; border-radius: 0; box-shadow: none; padding: calc(14px + env(safe-area-inset-top, 0px)) 22px calc(18px + env(safe-area-inset-bottom, 0px)); overflow: hidden; overscroll-behavior: none; touch-action: manipulation; }
  .zs-cs2.has-admin { --cs2-orb: clamp(104px, 18dvh, 190px); }
  .zs-cs2__orb { margin: clamp(22px, 5.2dvh, 48px) 0 clamp(26px, 5dvh, 44px); }
  .zs-cs2.has-admin .zs-cs2__orb { margin: clamp(20px, 3.6dvh, 34px) 0 clamp(22px, 3.4dvh, 32px); }
  .zs-cs2__sat { width: 40px; height: 40px; margin: -20px; }
  .zs-cs2__title { font-size: clamp(25px, 7.6vw, 32px); margin-top: 12px; }
  .zs-cs2__sub { font-size: 14.5px; margin-top: 10px; }
  .zs-cs2__feats { flex-wrap: nowrap; gap: 6px; margin-top: 14px; max-width: 100%; }
  .zs-cs2__feats li { padding: 7px 9px; font-size: 11.5px; gap: 5px; min-width: 0; }
  .zs-cs2__feats li span { overflow: hidden; text-overflow: ellipsis; }
  .zs-cs2__foot { padding-top: 14px; gap: 8px; }
  .zs-cs2__btn { width: 100%; }
  .zs-cs2.has-admin .zs-cs2__note { display: none; }
  .zs-cs2 .zs-cs__admin { padding: 10px 12px; gap: 6px; border-radius: 16px; }
  .zs-cs2 .zs-cs__admin-text { font-size: 12.5px; line-height: 17px; }
}
@media (max-width: 768px) and (max-height: 700px) {
  .zs-cs2__sub { font-size: 13.5px; line-height: 1.45; }
  .zs-cs2__note { display: none; }
  .zs-cs2__btn { height: 48px; }
  .zs-cs2.has-admin .zs-cs2__feats { display: none; }
}
@media (max-width: 768px) and (max-height: 600px) {
  .zs-cs2 { --cs2-orb: clamp(96px, 22dvh, 132px); }
  .zs-cs2__feats { display: none; }
  .zs-cs2.has-admin .zs-cs2__sub { display: none; }
}
@media (max-width: 350px) { .zs-cs2__feats li .zs-cs2__ic { display: none; } }
/* Coming soon on phones: the page behind the fixed screen cannot move either. */
@media (max-width: 768px) { html:has(.zs-cs2), html:has(.zs-cs2) body { overflow: hidden !important; overscroll-behavior: none; height: 100%; } }

/* Coming soon on computers: fixed too. The page is sized to the screen (screens.js) and nothing behind it scrolls. */
html:has(.zs-cs2), html:has(.zs-cs2) body { overflow: hidden !important; overscroll-behavior: none; }
@media (min-width: 769px) {
  .zs-cs2 { --cs2-orb: clamp(120px, 26vh, 240px); overflow: hidden; padding-top: 20px; padding-bottom: 20px; }
  .zs-cs2.has-admin { --cs2-orb: clamp(100px, 19vh, 190px); }
  .zs-cs2__orb { margin: clamp(16px, 4vh, 42px) 0 clamp(20px, 4vh, 40px); }
  .zs-cs2__foot { padding-top: clamp(12px, 2.4vh, 26px); }
  .zs-cs2 .zs-cs__admin { padding: 10px 16px; gap: 6px; }
}
@media (min-width: 769px) and (max-height: 860px) {
  .zs-cs2__title { font-size: clamp(24px, 3vw, 32px); margin-top: 10px; }
  .zs-cs2__sub { font-size: 14px; margin-top: 8px; }
  .zs-cs2__feats { margin-top: 12px; }
  .zs-cs2__note { display: none; }
  .zs-cs2__btn { height: 48px; }
  .zs-cs2.has-admin .zs-cs2__feats { display: none; }
}
@media (min-width: 769px) and (max-height: 700px) {
  .zs-cs2 { --cs2-orb: clamp(92px, 18vh, 130px); }
  .zs-cs2.has-admin { --cs2-orb: 88px; }
  .zs-cs2__feats { display: none; }
  .zs-cs2.has-admin .zs-cs2__sub { display: none; }
  .zs-cs2__sat { width: 34px; height: 34px; margin: -17px; }
}

/* Coming soon on phones, signed in: the app's own top bar and bottom menu stay on screen, so the page keeps its
   content between them (nothing sits under the menu) and leaves its own back/brand row out. */
@media (max-width: 768px) {
  .zs-cs2.is-app { padding-top: calc(var(--zs-topbar-h, 56px) + env(safe-area-inset-top, 0px) + 6px); padding-bottom: calc(var(--zs-tabbar-h, 64px) + 12px + env(safe-area-inset-bottom, 0px) + 22px); }
  .zs-cs2.is-app .zs-cs2__top { display: none; }
  .zs-cs2.is-app { --cs2-orb: clamp(120px, 23dvh, 210px); }
  .zs-cs2.is-app.has-admin { --cs2-orb: clamp(92px, 14dvh, 150px); }
  .zs-cs2.is-app .zs-cs2__orb { margin: clamp(26px, 4.4dvh, 44px) 0 clamp(26px, 4dvh, 40px); }
  .zs-cs2.is-app.has-admin .zs-cs2__orb { margin: clamp(22px, 3.2dvh, 32px) 0 clamp(22px, 3dvh, 30px); }
  .zs-cs2.is-app.has-admin .zs-cs2__sat { width: 34px; height: 34px; margin: -17px; }
  .zs-cs2.is-app.has-admin .zs-cs2__btn { height: 48px; }
  .zs-cs2.is-app.has-admin .zs-cs__admin-actions { flex-wrap: wrap; justify-content: center; gap: 6px 12px; }
  /* The floating assistant button would sit on top of this page's buttons. */
  html:has(.zs-cs2.is-app) .zs-assistant-launcher { display: none !important; }
}
@media (max-width: 768px) and (max-height: 820px) {
  .zs-cs2.is-app.has-admin .zs-cs2__feats { display: none; }
  .zs-cs2.is-app .zs-cs2__note { display: none; }
}
@media (max-width: 768px) and (max-height: 700px) {
  .zs-cs2.is-app .zs-cs2__feats { display: none; }
  .zs-cs2.is-app.has-admin .zs-cs2__sub { display: none; }
  .zs-cs2.is-app { --cs2-orb: clamp(88px, 17dvh, 120px); }
}

/* Coming soon, computers: edge to edge. The page fills the whole area beside the side menu, with no card edges; its content stays centred. */
@media (min-width: 769px) {
  html .zs-cs2 { width: 100%; max-width: none; margin: 0; border-radius: 0; box-shadow: none; padding-left: clamp(24px, 5vw, 72px); padding-right: clamp(24px, 5vw, 72px); }
  html .zs-cs2 > :not(.zs-cs2__bg):not(.zs-cs2__top) { max-width: 760px; }
}

/* ============ Computers: every page runs edge to edge with a 50px gap on the left and right ============
   One rule for all page roots, so no page sits in a narrow column in the middle. Chat inboxes and open chats already
   fill the screen and are left alone. Phones are not affected. */
@media (min-width: 769px) {
  html :is(.zs-screen, .zs-chframe__body) > :is(.zs-app-home, .zs-chat-hub, .zs-chat-library, .zs-social-page, .zs-transaction-history, .zs-notify-page, .zs-settings, .zs-anl, .zs-assistant-chat, .zs-arc, .zs-ai, .zs-billing, .zs-ai-sender, .zs-biz-connect, .zs-zr-page, .zs-support, .zs-onboarding-learn, .zs-wa-page, .zs-wa-x-contacts, .zs-tg-x-page, .zs-tg-settings),
  html .zs-tg-x-async > .zs-tg-settings {
    box-sizing: border-box !important; width: calc(100% - 100px) !important; max-width: none !important; margin-left: 50px !important; margin-right: 50px !important; padding-left: 0 !important; padding-right: 0 !important;
  }
  html :is(.zs-screen, .zs-chframe__body) > :is(.zs-chat-settings, .zs-wa-updates, .zs-tg-x-contacts, .zs-onboarding-admin) { box-sizing: border-box !important; max-width: none !important; padding-left: 50px !important; padding-right: 50px !important; }
  html .zs-admin__content { box-sizing: border-box !important; max-width: none !important; padding-left: 50px !important; padding-right: 50px !important; }
  /* Pages whose own content had a second, narrower column inside the page. */
  html .zs-support:has(.zs-support__article), html .zs-chat-library, html .zs-notify-page { max-width: none !important; }
  /* Calls page: its pinned header no longer needs to reach past the page's own padding. */
  html .zs-wa-calls2 .zs-wa-calls2__sticky { margin-left: 0 !important; margin-right: 0 !important; padding-left: 0 !important; padding-right: 0 !important; }
}

/* Computers, 20px edges, second pass: inner wrappers that kept their own narrow column or extra side padding. */
@media (min-width: 769px) {
  html .zr-page, html .zs-zr-page { box-sizing: border-box !important; width: calc(100% - 100px) !important; max-width: none !important; margin-left: 50px !important; margin-right: 50px !important; padding-left: 0 !important; padding-right: 0 !important; }
  html .zs-notify-page__list, html .zs-wa-insights__content { padding-left: 0 !important; padding-right: 0 !important; }
  html .zs-wa-calling-settings > *, html .zs-wa-calling-settings__content, html .zs-tg-x-business-content, html .zs-tg-x-call-card, html .zs-tg-x-group-list, html .zs-tg-x-flow-form > * { box-sizing: border-box !important; width: 100% !important; max-width: none !important; margin-left: 0 !important; margin-right: 0 !important; }
  html .zs-tg-settings > .zs-tg-x-broadcast-panel, html .zs-tg-settings .zs-list--inset, html .zs-chat-settings .zs-list--inset { margin-left: 0 !important; margin-right: 0 !important; }
}

/* ── My Business Account (js/app/accounts.js) · layout v3: channel tabs, "now using" bar, compact searchable switch grid ── */
html .ac{--ac-wa:#25D366;--ac-wa2:#128C7E;--ac-tg:#2AABEE;--ac-tg2:#1C8DCB;--ac-c:var(--ac-wa);--ac-c2:var(--ac-wa2);display:grid;gap:14px;align-content:start;width:100%;max-width:1080px;margin:0 auto;padding:16px 16px 32px;box-sizing:border-box}
html .ac.ac--tg{--ac-c:var(--ac-tg);--ac-c2:var(--ac-tg2)}
html .ac h1,html .ac h2,html .ac p,html .ac ul{margin:0}
html .ac-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 14px}
html .ac-head h1{color:var(--zs-text);font-size:clamp(21px,5vw,26px);font-weight:800;letter-spacing:-.02em;line-height:1.2}
html .ac-head p{flex:1 1 100%;color:var(--zs-text-secondary);font-size:13.5px;line-height:1.5}
html .ac-plan{display:inline-flex;flex-wrap:wrap;align-items:center;gap:4px 7px;padding:6px 12px 6px 9px;border:1px solid var(--zs-border);border-radius:999px;background:var(--zs-surface);color:var(--zs-text-secondary);font-size:12.5px;line-height:1.3}
html .ac-plan .zi{color:#C98A00}
html .ac-plan b{color:var(--zs-text);font-weight:800}
html .ac-plan a{margin-left:3px;color:var(--ac-c2);font-weight:800;text-decoration:none}
html .ac-tabs{display:grid;grid-template-columns:1fr 1fr;gap:5px;padding:5px;border-radius:16px;background:var(--zs-surface-2)}
html .ac-tab{position:relative;display:flex;align-items:center;justify-content:center;gap:8px;min-width:0;min-height:44px;padding:0 10px;border:0;border-radius:12px;background:transparent;color:var(--zs-text-secondary);font:inherit;font-size:14.5px;font-weight:750;cursor:pointer}
html .ac-tab.is-active{background:var(--zs-surface);color:var(--zs-text);box-shadow:var(--zs-shadow-sm)}
html .ac-tab__logo{display:grid;place-items:center;flex:none;width:26px;height:26px;border-radius:8px;background:var(--ac-wa);color:#fff}
html .ac-tab--tg .ac-tab__logo{background:var(--ac-tg)}
html .ac-tab:not(.is-active) .ac-tab__logo{opacity:.75}
html .ac-tab__n{flex:none;min-width:22px;padding:1px 7px;border-radius:999px;background:color-mix(in srgb,var(--zs-text) 9%,transparent);font-size:12px;font-weight:800;text-align:center}
html .ac-tab__dot{flex:none;width:8px;height:8px;border-radius:50%;background:#EF4444}
html .ac-panel{display:grid;gap:12px}
html .ac-now{overflow:hidden;border:1px solid color-mix(in srgb,var(--ac-c) 50%,var(--zs-border));border-radius:16px;background:color-mix(in srgb,var(--ac-c) 8%,var(--zs-surface))}
html .ac-now__row{display:flex;align-items:center;gap:11px;padding:11px 0 11px 12px}
html .ac-now__label{color:var(--ac-c2);font-size:10.5px;font-weight:800;letter-spacing:.07em;text-transform:uppercase}
html .ac-now .ac-av{width:44px;height:44px;background:var(--ac-c2);color:#fff;font-size:14.5px}
html .ac .zs-btn.ac-now__open{flex:none;min-height:38px;padding:0 14px;border-color:transparent;border-radius:999px;background:var(--ac-c2);color:#fff;font-size:13px;font-weight:750;box-shadow:none}
html .ac .zs-btn.ac-now__open:hover{background:color-mix(in srgb,var(--ac-c2) 88%,#000)}
html .ac-now .ac-item__more{align-self:stretch;border-left-color:color-mix(in srgb,var(--ac-c) 30%,var(--zs-border))}
html .ac-bar{display:flex;flex-wrap:wrap;align-items:center;gap:8px 10px}
html .ac-bar__title{display:flex;align-items:center;gap:8px;flex:1 1 auto;min-width:0}
html .ac-bar__title h2{color:var(--zs-text);font-size:15px;font-weight:800}
html .ac-bar__count{padding:1px 8px;border-radius:999px;background:var(--zs-surface-2);color:var(--zs-text-secondary);font-size:12px;font-weight:800}
html .ac-bar__usage{color:var(--zs-text-secondary);font-size:12.5px}
html .ac-search{position:relative;display:flex;align-items:center;flex:1 1 220px;max-width:340px}
html .ac-search .zi{position:absolute;left:11px;color:var(--zs-text-tertiary);pointer-events:none}
html .ac-search .zs-input{width:100%;min-height:38px;padding-left:34px;border-radius:999px;font-size:13.5px}
html .ac-addbtn{display:inline-flex;align-items:center;gap:6px;flex:none;min-height:38px;padding:0 14px;border:1.5px dashed color-mix(in srgb,var(--ac-c) 60%,var(--zs-border));border-radius:999px;background:color-mix(in srgb,var(--ac-c) 7%,var(--zs-surface));color:var(--ac-c2);font:inherit;font-size:13px;font-weight:800;text-decoration:none;cursor:pointer}
html .ac-addbtn:hover{border-color:var(--ac-c);background:color-mix(in srgb,var(--ac-c) 14%,var(--zs-surface))}
html .ac-addbtn:disabled{opacity:.6;cursor:progress}
html .ac-addbtn--up{border-style:solid;border-color:var(--zs-border);background:var(--zs-surface);color:var(--zs-text)}
html .ac-addbtn--up .zi{color:#C98A00}
html .ac-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:8px;align-items:start;padding:0;list-style:none}
html .ac-item{overflow:hidden;border:1px solid var(--zs-border);border-radius:14px;background:var(--zs-surface);transition:border-color .15s,box-shadow .15s}
html .ac-item:hover,html .ac-item.is-open{border-color:var(--ac-c);box-shadow:0 0 0 3px color-mix(in srgb,var(--ac-c) 14%,transparent)}
html .ac-item.is-off{border-style:dashed}
html .ac-item__row{display:flex;align-items:stretch}
html .ac-item__main{display:flex;align-items:center;gap:10px;flex:1;min-width:0;padding:8px 8px 8px 10px;border:0;background:transparent;color:inherit;font:inherit;text-align:left;cursor:pointer}
html .ac-item__text{display:grid;gap:1px;flex:1;min-width:0}
html .ac-item__text b{overflow:hidden;color:var(--zs-text);font-size:14px;font-weight:750;line-height:1.3;text-overflow:ellipsis;white-space:nowrap}
html .ac-item__text small{display:flex;gap:6px;overflow:hidden;color:var(--zs-text-secondary);font-size:12px;line-height:1.35;white-space:nowrap}
html .ac-item__text small span{overflow:hidden;text-overflow:ellipsis}
html .ac-item__text small span+span::before{content:"· "}
html .ac-item__text small .ac-st{flex:none}
html .ac-st--warn{color:#B45309}
html .ac-st--bad{color:#DC2626}
html .ac-st--off{color:var(--zs-text-tertiary)}
html[data-theme="dark"] .ac-st--warn{color:#FFD08A}
html[data-theme="dark"] .ac-st--bad{color:#FFB4AB}
html .ac-av{position:relative;display:grid;place-items:center;flex:none;width:38px;height:38px;border-radius:50%;background:color-mix(in srgb,var(--ac-c) 16%,var(--zs-surface));color:var(--ac-c2);font-size:13px;font-weight:800;letter-spacing:.01em}
html .ac-av__dot{position:absolute;right:-1px;bottom:-1px;width:11px;height:11px;border:2px solid var(--zs-surface);border-radius:50%;background:var(--zs-text-tertiary)}
html .ac-av__dot--ok{background:#22C55E}
html .ac-av__dot--warn{background:#F5A524}
html .ac-av__dot--bad{background:#EF4444}
html .ac-badge{flex:none;min-width:20px;padding:1px 6px;border-radius:999px;background:#EF4444;color:#fff;font-size:11px;font-weight:800;line-height:1.6;text-align:center}
html .ac-item__go{flex:none;padding:5px 11px;border-radius:999px;background:color-mix(in srgb,var(--ac-c) 14%,var(--zs-surface));color:var(--ac-c2);font-size:12px;font-weight:800}
html .ac-item__main:hover .ac-item__go{background:var(--ac-c2);color:#fff}
html .ac-item__more{display:grid;place-items:center;flex:none;width:38px;border:0;border-left:1px solid var(--zs-border);background:transparent;color:var(--zs-text-secondary);cursor:pointer}
html .ac-item__more:hover,html .ac-item__more.is-open{background:var(--zs-surface-2);color:var(--zs-text)}
html .ac-manage{display:grid;gap:10px;padding:10px 12px 12px;border-top:1px solid var(--zs-border);background:var(--zs-surface)}
html .ac-manage__btns{display:flex;flex-wrap:wrap;gap:8px}
html .ac-manage__hint{color:var(--zs-text-secondary);font-size:12px}
html .ac-mini{display:inline-flex;align-items:center;gap:6px;min-height:34px;padding:0 12px;border:1px solid var(--zs-border);border-radius:10px;background:var(--zs-surface);color:var(--zs-text);font:inherit;font-size:12.5px;font-weight:700;cursor:pointer}
html .ac-mini:hover{background:var(--zs-surface-2)}
html .ac-mini--danger{color:#DC2626}
html .ac-kb{display:grid;gap:5px;min-width:0}
html .ac-kb__label{display:inline-flex;align-items:center;gap:6px;color:var(--zs-text-secondary);font-size:11.5px;font-weight:700}
html .ac-kb__label .zi{color:var(--ac-c2)}
html .ac-kb__select{width:100%;max-width:420px;min-height:38px;font-size:13px}
html .ac-none,html .ac-hint{padding:14px;border:1px dashed var(--zs-border);border-radius:14px;color:var(--zs-text-secondary);font-size:13px;line-height:1.5;text-align:center}
html .ac-empty{display:grid;gap:8px;justify-items:center;padding:26px 16px;border:1px dashed var(--zs-border);border-radius:16px;text-align:center}
html .ac-empty__logo{display:grid;place-items:center;width:52px;height:52px;border-radius:16px;background:var(--ac-c);color:#fff}
html .ac-empty b{color:var(--zs-text);font-size:15px}
html .ac-empty p{max-width:360px;color:var(--zs-text-secondary);font-size:13px;line-height:1.5}
html .ac-help{border:1px solid var(--zs-border);border-radius:14px;background:var(--zs-surface)}
html .ac-help summary{display:flex;align-items:center;gap:8px;padding:11px 14px;color:var(--zs-text);font-size:13.5px;font-weight:750;cursor:pointer;list-style:none}
html .ac-help summary::-webkit-details-marker{display:none}
html .ac-help summary .zi{color:var(--zs-text-secondary)}
html .ac-help ul{display:grid;gap:8px;padding:0 14px 14px;list-style:none}
html .ac-help li{display:grid;gap:1px;font-size:13px;line-height:1.5}
html .ac-help li b{color:var(--zs-text)}
html .ac-help li span{color:var(--zs-text-secondary)}
@media(max-width:559px){html .ac{gap:12px;padding:12px 12px 28px}html .ac-list{grid-template-columns:1fr}html .ac-bar__title{flex-basis:100%}html .ac-addbtn{order:2}html .ac-bar__usage{order:3;flex:1 1 auto;text-align:right}html .ac-search{flex-basis:100%;max-width:none;order:4}html .ac-now__row{flex-wrap:wrap;padding:11px 12px}html .ac-now__row .ac-item__text{flex:1 1 0}html .ac-now .ac-item__more{align-self:center;width:38px;height:38px;border:1px solid color-mix(in srgb,var(--ac-c) 30%,var(--zs-border));border-radius:50%}html .ac .zs-btn.ac-now__open{order:5;flex:1 1 100%;min-height:42px}}
html .zs-chat-row__acct{flex:none;max-width:96px;padding:1px 7px;overflow:hidden;border-radius:999px;background:var(--zs-accent-soft);color:var(--zs-accent-text);font-size:10.5px;font-weight:700;line-height:1.6;text-overflow:ellipsis;white-space:nowrap}
html .zs-ai-kb-shared{display:grid;gap:8px;justify-items:start;border-color:color-mix(in srgb,#B24BF3 40%,var(--zs-border))}
html .zs-ai-kb-shared p{margin:0;color:var(--zs-text-secondary);font-size:13px;line-height:1.5}
@media(min-width:560px){html .ac-row__actions{grid-template-columns:minmax(0,1fr) auto;align-items:end}html .ac-row__actions.is-single{grid-template-columns:auto;justify-content:end}html .ac-help ul{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(min-width:900px){html .ac{padding:26px 24px 44px}html .ac-grid{grid-template-columns:repeat(2,minmax(0,1fr))}html .ac-top{grid-template-columns:minmax(0,1fr) auto;align-items:center}html .ac-plan{min-width:300px}html .ac-stat{padding:14px 16px}}
@media(max-width:559px){html .ac-stat{flex-direction:column;align-items:flex-start;gap:8px;padding:11px}}
/* ── Dashboard channel card with several accounts (js/app/home.js accountSlider): swipe between accounts, search below ── */
html .zs-chslide{display:grid;grid-template-rows:minmax(0,1fr) auto;gap:8px;min-width:0}
html .zs-chslide [hidden]{display:none!important}
html .zs-chslide__track{display:flex;gap:10px;min-width:0;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scrollbar-width:none;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain;border-radius:20px}
html .zs-chslide__track::-webkit-scrollbar{display:none}
html .zs-chslide__track>.zs-app-chcard{flex:0 0 100%;box-sizing:border-box;scroll-snap-align:start;scroll-snap-stop:always}
html .zs-chslide__track>.zs-app-chcard.is-current{border-color:color-mix(in srgb,var(--zs-chs) 55%,var(--zs-hairline))}
html .zs-chslide--wa{--zs-chs:#25D366;--zs-chs2:#128C7E}
html .zs-chslide--tg{--zs-chs:#2AABEE;--zs-chs2:#1C8DCB}
html .zs-chslide__name{display:flex;align-items:center;gap:7px;min-width:0}
html .zs-chslide__name span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html .zs-chslide__name em{flex:none;padding:2px 8px;border-radius:999px;background:var(--zs-chs2);color:#fff;font-size:10.5px;font-style:normal;font-weight:800;letter-spacing:.02em}
html .zs-chslide__bar{display:flex;align-items:center;gap:6px;min-width:0}
html .zs-chslide__nav{display:grid;place-items:center;flex:none;width:32px;height:32px;padding:0;border:1px solid var(--zs-border);border-radius:50%;background:var(--zs-surface);color:var(--zs-text);cursor:pointer}
html .zs-chslide__nav:hover:not(:disabled){border-color:var(--zs-chs);color:var(--zs-chs2)}
html .zs-chslide__nav:disabled{opacity:.35;cursor:default}
html .zs-chslide__search{position:relative;display:flex;align-items:center;flex:1 1 0;min-width:0}
html .zs-chslide__search .zi{position:absolute;left:10px;color:var(--zs-text-tertiary);pointer-events:none}
html .zs-chslide__search input{width:100%;min-width:0;height:32px;padding:0 10px 0 29px;border:1px solid var(--zs-border);border-radius:999px;background:var(--zs-surface);color:var(--zs-text);font:inherit;font-size:16px;outline:0}
html .zs-chslide__search input:focus{border-color:var(--zs-chs)}
html .zs-chslide__count{flex:none;min-width:34px;color:var(--zs-text-secondary);font-size:12px;font-weight:750;text-align:center;white-space:nowrap}
html .zs-chslide__none{display:grid;place-items:center;min-height:120px;padding:14px;border:1px dashed var(--zs-border);border-radius:20px;color:var(--zs-text-secondary);font-size:13px;text-align:center}
@media(min-width:560px){html .zs-chslide__search input{font-size:13px}}
@media(max-width:559px){html .zs-chslide__bar{flex-wrap:wrap;justify-content:space-between}html .zs-chslide__count{flex:1 1 0}html .zs-chslide__search{order:3;flex:1 1 100%}html .zs-chslide__search input{height:36px}html .zs-chslide__name{flex-wrap:wrap;gap:4px 7px}html .zs-chslide__name span{max-width:100%}}
/* Video guide card at the top of the WhatsApp and Telegram setup pages (js/chat/guide.js video) */
html .zs-guide-video{display:grid;gap:0;margin:0 0 16px;overflow:hidden;border:1px solid var(--zs-border);border-radius:18px;background:var(--zs-surface);box-shadow:var(--zs-shadow-sm)}
html .zs-guide-video__head{display:flex;align-items:center;gap:12px;padding:12px 14px}
html .zs-guide-video__icon{display:grid;place-items:center;flex:none;width:40px;height:40px;border-radius:50%;background:linear-gradient(135deg,#E411F5,#6B4EFF 55%,#19C8FF);color:#fff}
html .zs-guide-video__text{display:grid;gap:1px;flex:1;min-width:0}
html .zs-guide-video__text b{color:var(--zs-text);font-size:15px;font-weight:800}
html .zs-guide-video__text small{color:var(--zs-text-secondary);font-size:12.5px;line-height:1.4}
html .zs-guide-video__toggle{flex:none;min-height:34px;padding:0 12px;border:1px solid var(--zs-border);border-radius:999px;background:var(--zs-surface);color:var(--zs-text);font:inherit;font-size:12.5px;font-weight:750;cursor:pointer}
html .zs-guide-video__body{display:grid;gap:10px;padding:0 14px 14px}
html .zs-guide-video__body[hidden]{display:none}
html .zs-guide-video__player{display:block;width:100%;max-width:680px;max-height:min(52vh,384px);margin:0 auto;aspect-ratio:16/9;border-radius:12px;background:#060A14}
html .zs-guide-video__row{display:flex;flex-wrap:wrap;gap:8px}
html .zs-guide-video__btn{display:inline-flex;align-items:center;gap:7px;min-height:36px;padding:0 14px;border:1px solid var(--zs-border);border-radius:999px;background:var(--zs-surface-2);color:var(--zs-text);font:inherit;font-size:13px;font-weight:750;cursor:pointer}
html .zs-guide-video__note{margin:0;color:var(--zs-text-secondary);font-size:13px}

/* Keyboard open on an ordinary scrolling page (iOS): the system slides the visible area up inside the page, which
   carried the top bar out of sight. Follow the visible area instead; viewport.js keeps --zs-vv-top current on every
   frame while a field is focused. Chat screens pin themselves (is-chat-locked) and are left alone. */
html.is-kb-open:not(.is-chat-locked) #zs-header,
html.is-kb-open:not(.is-chat-locked) .zs-app-statusstrip { translate: 0 var(--zs-vv-top, 0px); }

/* Page lock (viewport.js pageLock): while the keyboard is open for an opted-in field, <body> is a fixed box the size of
   the visible area and scrolls its own content, so the sticky top bar is held by the browser and cannot trail a scroll. */
html.is-kb-page { height: 100%; overflow: hidden; overscroll-behavior: none; }
html.is-kb-page body { position: fixed; left: 0; right: 0; width: 100%; min-height: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: none; -webkit-overflow-scrolling: touch; }
html.is-kb-open.is-kb-page:not(.is-chat-locked) #zs-header { translate: none; }