/* ZaxSocial in-app social screens · Status and contacts. Owner: U9. */
.zs-social-page { width: min(100%, 960px); margin: 0 auto; padding: 16px 12px calc(28px + var(--zs-safe-bottom, 0px)); }
.zs-social-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 10px 4px 18px; }
.zs-social-head h1 { margin: 0; color: var(--zs-text); font-size: clamp(24px, 5vw, 32px); letter-spacing: -.035em; }
.zs-social-head p { margin: 6px 0 0; color: var(--zs-text-secondary); font-size: 14px; line-height: 1.5; }
.zs-social-card { display: grid; gap: 14px; margin: 0 0 14px; padding: 16px; border: 1px solid var(--zs-hairline); border-radius: var(--zs-r-lg); background: var(--zs-surface); box-shadow: var(--zs-shadow-xs); }
.zs-social-card__head h2 { margin: 0; color: var(--zs-text); font-size: 16px; }
.zs-social-card__head p { margin: 4px 0 0; color: var(--zs-text-secondary); font-size: 12px; line-height: 1.5; }
.zs-social-handle { display: grid; gap: 9px; }
.zs-social-handle__input { display: flex; align-items: center; gap: 7px; min-height: 48px; padding: 0 12px; border: 1px solid var(--zs-hairline); border-radius: var(--zs-r-md); background: var(--zs-surface-2); color: var(--zs-text-secondary); }
.zs-social-handle__input > span { font-size: 16px; font-weight: 700; }
.zs-social-handle__input .zs-input { min-width: 0; padding-inline: 0; border: 0; background: transparent; box-shadow: none; color: var(--zs-text); text-transform: lowercase; }
.zs-social-hint { color: var(--zs-text-secondary); font-size: 12px; line-height: 1.45; }
.zs-social-handle-status { min-height: 18px; color: var(--zs-text-secondary); font-size: 12px; }
.zs-social-handle-status.is-ok { color: var(--zs-success); }
.zs-social-handle-status.is-error { color: var(--zs-danger); }
.zs-social-suggestions, .zs-social-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.zs-social-suggestion { padding: 7px 11px; border: 1px solid var(--zs-hairline); border-radius: 999px; background: var(--zs-surface-2); color: var(--zs-text); font: inherit; font-size: 12px; cursor: pointer; transition: border-color var(--zs-dur-fast, 120ms), transform var(--zs-dur-fast, 120ms); }
.zs-social-suggestion:hover { transform: translateY(-1px); border-color: var(--zs-accent); }
.zs-social-share { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: var(--zs-r-md); background: var(--zs-surface-2); }
.zs-social-share > div:last-child { min-width: 0; }
.zs-social-share b { display: block; overflow-wrap: anywhere; color: var(--zs-text); font-size: 12px; }
.zs-social-share small { display: block; margin: 5px 0 8px; color: var(--zs-text-secondary); font-size: 11px; }
.zs-social-search { display: grid; gap: 10px; }
.zs-social-search-result { display: grid; gap: 10px; }
.zs-social-field { display: grid; gap: 6px; color: var(--zs-text-secondary); font-size: 12px; font-weight: 600; }
.zs-social-result { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; border: 1px solid var(--zs-hairline); border-radius: var(--zs-r-md); background: var(--zs-surface-2); }
.zs-social-person { display: flex; min-width: 0; align-items: center; gap: 10px; }
.zs-social-person > div { display: grid; min-width: 0; gap: 3px; }
.zs-social-person b { overflow: hidden; color: var(--zs-text); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.zs-social-person small { overflow: hidden; color: var(--zs-text-secondary); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.zs-social-avatar { display: grid; flex: none; width: 40px; height: 40px; place-items: center; border-radius: 50%; background: var(--zs-accent-soft); color: var(--zs-accent); font-size: 13px; font-weight: 700; }
.zs-social-tabs { display: flex; gap: 6px; overflow-x: auto; margin: -2px -3px 0; padding: 3px; border-bottom: 1px solid var(--zs-hairline); }
.zs-social-tab { position: relative; flex: none; min-height: 40px; padding: 0 12px; border: 0; border-radius: 10px 10px 0 0; background: transparent; color: var(--zs-text-secondary); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.zs-social-tab:hover { color: var(--zs-text); background: var(--zs-surface-2); }
.zs-social-tab.is-active { color: var(--zs-accent); }
.zs-social-tab.is-active::after { position: absolute; right: 10px; bottom: -4px; left: 10px; height: 2px; border-radius: 2px; background: var(--zs-accent); content: ''; }
.zs-social-list { display: grid; gap: 0; }
.zs-social-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 68px; padding: 10px 0; border-bottom: 1px solid var(--zs-hairline); animation: zs-social-enter 220ms cubic-bezier(.2,.7,.25,1) both; }
.zs-social-row:last-child { border-bottom: 0; }
.zs-social-row__actions { display: flex; flex: none; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.zs-social-row__actions .zs-btn { min-height: 34px; padding-inline: 10px; font-size: 12px; }
.zs-social-profile { max-width: 620px; margin: 10vh auto 0; }
.zs-social-profile__person { display: flex; align-items: center; gap: 14px; }
.zs-social-profile__person h1 { margin: 0; color: var(--zs-text); font-size: 22px; }
.zs-social-profile__person p { margin: 5px 0 0; color: var(--zs-text-secondary); }
.zs-social-profile__note, .zs-social-profile__state { color: var(--zs-text-secondary); font-size: 13px; }
.zs-social-profile__person .zs-avatar { flex: none; }
.zs-status-page { max-width: 820px; }
.zs-status-feed { display: grid; gap: 14px; }
.zs-status-section-title { margin: 2px 0 10px; color: var(--zs-text-secondary); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.zs-status-mine, .zs-status-group, .zs-status-mine-card { overflow: hidden; padding: 16px; border: 1px solid var(--zs-hairline); border-radius: var(--zs-r-lg); background: var(--zs-surface); box-shadow: var(--zs-shadow-xs); animation: zs-social-enter 240ms cubic-bezier(.2,.7,.25,1) both; }
.zs-status-mine__row { display: flex; align-items: center; gap: 12px; }
.zs-status-mine__copy { display: grid; flex: 1; min-width: 0; gap: 4px; }
.zs-status-mine__copy b, .zs-status-person__copy b { overflow: hidden; color: var(--zs-text); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.zs-status-mine__copy small, .zs-status-person__copy small { color: var(--zs-text-secondary); font-size: 11px; }
.zs-status-person { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px 12px; padding: 12px 0; border-top: 1px solid var(--zs-hairline); }
.zs-status-person:first-of-type { border-top: 0; }
.zs-status-person__copy { display: grid; min-width: 0; gap: 4px; }
.zs-status-avatar-button { cursor: pointer; box-shadow: 0 0 0 2px var(--zs-surface), 0 0 0 4px var(--zs-accent); transition: box-shadow var(--zs-dur-fast, 120ms), transform var(--zs-dur-fast, 120ms); }
.zs-status-person.is-viewed .zs-status-avatar-button, .zs-status-person.is-muted .zs-status-avatar-button { box-shadow: 0 0 0 2px var(--zs-surface), 0 0 0 4px var(--zs-text-tertiary, var(--zs-text-secondary)); }
.zs-status-avatar-button:hover { transform: scale(1.04); }
.zs-status-person__items { display: flex; grid-column: 1 / -1; gap: 9px; overflow-x: auto; overscroll-behavior-inline: contain; padding: 4px 4px 8px; scrollbar-width: thin; }
.zs-status-person__items > .is-clickable { flex: 0 0 clamp(96px, 24vw, 138px); overflow: hidden; border-radius: var(--zs-r-md); }
.zs-status-person__items .zs-status-text-preview, .zs-status-person__items .zs-status-media-preview { width: 100%; height: 158px; min-height: 158px; max-height: 158px; border-radius: var(--zs-r-md); font-size: 12px; }
.zs-status-person__items .zs-status-text-preview { padding: 11px; }
.zs-status-person__items .zs-status-media-wrap { position: relative; height: 158px; }
.zs-status-person__items .zs-status-media-wrap video, .zs-status-person__items .zs-status-media-wrap img { height: 100%; object-fit: cover; }
.zs-status-person__items .zs-status-media-wrap p { position: absolute; right: 0; bottom: 0; left: 0; overflow: hidden; padding: 16px 8px 8px; background: linear-gradient(transparent, var(--zs-lit-000000-70)); color: var(--zs-lit-ffffff); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.zs-status-ring { width: 12px; height: 12px; border: 2px solid var(--zs-accent); border-radius: 50%; box-shadow: 0 0 0 3px color-mix(in srgb, var(--zs-accent) 16%, transparent); }
.zs-status-ring.is-seen { border-color: var(--zs-text-tertiary, var(--zs-text-secondary)); box-shadow: 0 0 0 3px var(--zs-surface-2); }
.zs-status-actions { display: flex; grid-column: 2 / -1; flex-wrap: wrap; gap: 6px; }
.zs-status-reply-panel { display: grid; grid-column: 1 / -1; gap: 8px; padding: 10px; border-radius: var(--zs-r-md); background: var(--zs-surface-2); animation: zs-social-enter 180ms ease-out both; }
.zs-status-reply-panel textarea { min-height: 56px; }
.zs-status-actions .zs-btn { min-height: 32px; padding-inline: 9px; font-size: 11px; }
.zs-status-text-preview { display: grid; min-height: 120px; place-items: center; padding: 18px; border-radius: var(--zs-r-md); color: white; font-size: 17px; font-weight: 650; line-height: 1.4; text-align: center; white-space: pre-wrap; overflow-wrap: anywhere; }
.zs-status-text-preview.zs-status-font-1 { font-family: Georgia, 'Times New Roman', serif; }
.zs-status-text-preview.zs-status-font-2 { font-family: var(--zs-font-mono, ui-monospace, monospace); }
.zs-status-text-preview.zs-status-font-3 { font-weight: 800; letter-spacing: .025em; }
.zs-status-text-preview.zs-status-font-4 { font-style: italic; }
.zs-status-media-wrap { overflow: hidden; border-radius: var(--zs-r-md); background: var(--zs-surface-2); }
.zs-status-media-preview { display: block; width: 100%; max-height: 420px; object-fit: cover; border-radius: var(--zs-r-md); background: var(--zs-text); }
.zs-status-person__items > .is-clickable { cursor: pointer; transition: transform var(--zs-dur-fast, 120ms), filter var(--zs-dur-fast, 120ms); }
.zs-status-person__items > .is-clickable:hover { filter: brightness(1.05); transform: translateY(-1px); }
.zs-status-person__items > .is-clickable:focus-visible { outline: 3px solid var(--zs-accent); outline-offset: 3px; }
.zs-status-media-wrap p { margin: 0; padding: 10px 12px; color: var(--zs-text); font-size: 13px; }
.zs-status-compose { display: grid; gap: 14px; padding: 18px; border: 1px solid var(--zs-hairline); border-radius: var(--zs-r-lg); background: var(--zs-surface); box-shadow: var(--zs-shadow-sm); }
.zs-status-text-field, .zs-status-font-field, .zs-status-caption-field { display: grid; gap: 7px; }
.zs-status-compose textarea { min-height: 130px; resize: vertical; }
.zs-status-file { display: grid; min-height: 110px; place-items: center; gap: 6px; border: 1px dashed var(--zs-hairline-strong, var(--zs-hairline)); border-radius: var(--zs-r-md); background: var(--zs-surface-2); color: var(--zs-text-secondary); font-size: 13px; cursor: pointer; transition: border-color var(--zs-dur-fast, 120ms), background var(--zs-dur-fast, 120ms); }
.zs-status-file:hover { border-color: var(--zs-accent); background: var(--zs-accent-soft); }
.zs-status-file input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.zs-status-colors { display: flex; flex-wrap: wrap; gap: 8px; }
.zs-status-color { width: 30px; height: 30px; border: 2px solid var(--zs-surface); border-radius: 50%; box-shadow: 0 0 0 1px var(--zs-hairline); cursor: pointer; transition: transform var(--zs-dur-fast, 120ms), box-shadow var(--zs-dur-fast, 120ms); }
.zs-status-color:hover { transform: scale(1.08); }
.zs-status-color.is-active { box-shadow: 0 0 0 2px var(--zs-accent); }
.zs-status-compose-preview { min-height: 10px; }
.zs-status-compose-preview .zs-status-text-preview { min-height: 220px; font-size: 22px; }
.zs-status-delivery { display: grid; gap: 12px; }
.zs-status-delivery__head { display: grid; gap: 5px; }
.zs-status-delivery__head h2 { margin: 0; color: var(--zs-text); font-size: 17px; }
.zs-status-delivery__head p, .zs-status-delivery__footnote { margin: 0; color: var(--zs-text-secondary); font-size: 12px; line-height: 1.5; }
.zs-status-delivery-card { display: grid; min-width: 0; gap: 12px; padding: 14px; border: 1px solid var(--zs-hairline); border-radius: var(--zs-r-lg); background: var(--zs-surface); box-shadow: var(--zs-shadow-xs); animation: zs-social-enter 220ms cubic-bezier(.2,.7,.25,1) both; }
.zs-status-delivery-card.is-unavailable { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.zs-status-delivery-card__copy { display: grid; gap: 4px; }
.zs-status-delivery-card__copy b, .zs-status-delivery-card > b { color: var(--zs-text); font-size: 13px; }
.zs-status-delivery-card__copy small, .zs-status-delivery-card > small { color: var(--zs-text-secondary); font-size: 11px; line-height: 1.45; }
.zs-status-delivery-card__top { display: flex; min-width: 0; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.zs-status-delivery-card__toggle { display: flex; min-width: 0; align-items: center; gap: 10px; cursor: pointer; }
.zs-status-delivery-card__toggle > input, .zs-status-delivery-card__selectall > input, .zs-status-contact-choice > input, .zs-status-delivery-card__consent > input { flex: none; width: 17px; height: 17px; margin: 0; accent-color: var(--zs-accent); cursor: pointer; }
.zs-status-delivery-card__toggle > span { display: grid; min-width: 0; gap: 3px; }
.zs-status-delivery-card__toggle b { color: var(--zs-text); font-size: 14px; }
.zs-status-delivery-card__toggle small { color: var(--zs-text-secondary); font-size: 11px; }
.zs-status-delivery-card__summary { flex: none; padding: 6px 9px; border: 1px solid var(--zs-hairline); border-radius: 99px; background: var(--zs-surface-2); color: var(--zs-text-secondary); font-size: 11px; font-weight: 650; }
.zs-status-delivery-card__notice { margin: 0; padding: 9px 11px; border: 1px solid var(--zs-hairline); border-radius: var(--zs-r-md); background: var(--zs-surface-2); color: var(--zs-text-secondary); font-size: 11px; line-height: 1.5; }
.zs-status-recipient-panel { display: grid; width: 100%; height: min(390px, 48vh); min-height: 210px; min-width: 0; grid-template-rows: auto auto minmax(0, 1fr); overflow: hidden; border: 1px solid var(--zs-hairline); border-radius: var(--zs-r-md); background: var(--zs-surface-2); }
.zs-status-recipient-panel__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--zs-hairline); }
.zs-status-recipient-panel__head b { color: var(--zs-text); font-size: 12px; }
.zs-status-recipient-panel__head span { flex: none; color: var(--zs-text-secondary); font-size: 10px; }
.zs-status-delivery-card__tools { display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, .9fr); align-items: center; gap: 9px; padding: 9px 12px; border-bottom: 1px solid var(--zs-hairline); background: var(--zs-surface); }
.zs-status-delivery-card__selectall { display: flex; min-width: 0; align-items: center; gap: 8px; color: var(--zs-text); font-size: 11px; font-weight: 600; cursor: pointer; }
.zs-status-delivery-card__tools .zs-input { width: 100%; min-width: 0; min-height: 36px; }
.zs-status-contact-picker { display: grid; min-height: 0; min-width: 0; gap: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; padding: 3px 10px; scrollbar-width: thin; scrollbar-color: var(--zs-text-tertiary, var(--zs-text-secondary)) transparent; }
.zs-status-contact-picker::-webkit-scrollbar { width: 7px; }
.zs-status-contact-picker::-webkit-scrollbar-track { background: transparent; }
.zs-status-contact-picker::-webkit-scrollbar-thumb { border: 2px solid transparent; border-radius: 99px; background: var(--zs-text-tertiary, var(--zs-text-secondary)); background-clip: padding-box; }
.zs-status-contact-choice { display: flex; min-width: 0; align-items: center; gap: 10px; padding: 9px 5px; border-bottom: 1px solid var(--zs-hairline); color: var(--zs-text); cursor: pointer; transition: background var(--zs-dur-fast, 120ms); }
.zs-status-contact-choice:last-child { border-bottom: 0; }
.zs-status-contact-choice:hover { background: color-mix(in srgb, var(--zs-accent) 6%, transparent); }
.zs-status-contact-choice.is-ineligible { opacity: .58; cursor: not-allowed; }
.zs-status-contact-choice:focus-within { outline: 2px solid var(--zs-accent); outline-offset: -2px; }
.zs-status-contact-choice > span:last-child { display: grid; min-width: 0; gap: 3px; }
.zs-status-contact-choice b { overflow: hidden; color: var(--zs-text); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.zs-status-contact-choice small { overflow: hidden; color: var(--zs-text-secondary); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.zs-status-delivery-card__consent { display: flex; align-items: flex-start; gap: 9px; color: var(--zs-text-secondary); font-size: 11px; line-height: 1.45; cursor: pointer; }
.zs-status-mine-card { display: grid; gap: 12px; }
.zs-status-mine-card__content { display: grid; gap: 10px; }
.zs-status-metrics { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; color: var(--zs-text-secondary); font-size: 12px; }
.zs-status-metrics small { margin-left: auto; }
.zs-status-viewers { display: grid; gap: 2px; padding: 6px 0; }
.zs-status-viewer { display: flex; align-items: center; gap: 9px; min-height: 46px; padding: 6px 3px; border-bottom: 1px solid var(--zs-hairline); color: var(--zs-text); font-size: 12px; }
.zs-status-viewer__liked { margin-left: auto; color: var(--zs-danger); font-size: 11px; }
.zs-reply-threads { gap: 0; }
.zs-reply-thread { display: flex; width: 100%; min-height: 72px; align-items: center; gap: 11px; padding: 10px 4px; border: 0; border-bottom: 1px solid var(--zs-hairline); background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; transition: background var(--zs-dur-fast, 120ms); }
.zs-reply-thread:last-child { border-bottom: 0; }
.zs-reply-thread:hover { background: var(--zs-surface-2); }
.zs-reply-thread__copy { display: grid; flex: 1; min-width: 0; gap: 4px; }
.zs-reply-thread__copy b { overflow: hidden; color: var(--zs-text); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.zs-reply-thread__copy small { overflow: hidden; color: var(--zs-text-secondary); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.zs-reply-thread time, .zs-reply-bubble time { color: var(--zs-text-secondary); font-size: 10px; }
.zs-reply-unread { display: grid; min-width: 20px; height: 20px; place-items: center; padding: 0 5px; border-radius: 99px; background: var(--zs-accent); color: var(--zs-on-accent, white); font-size: 10px; font-weight: 700; }
.zs-reply-thread-view { display: grid; grid-template-rows: minmax(0, 1fr) auto; min-height: min(68vh, 680px); overflow: hidden; border: 1px solid var(--zs-hairline); border-radius: var(--zs-r-lg); background: var(--zs-surface); box-shadow: var(--zs-shadow-xs); }
.zs-replies-page { max-width: 820px; }
.zs-reply-messages { display: flex; flex-direction: column; gap: 10px; overflow: auto; padding: 16px; }
.zs-reply-bubble { display: grid; max-width: min(84%, 520px); gap: 5px; align-self: flex-start; padding: 10px 12px; border: 1px solid var(--zs-hairline); border-radius: 15px 15px 15px 4px; background: var(--zs-surface-2); animation: zs-social-enter 180ms ease-out both; }
.zs-reply-bubble.is-own { align-self: flex-end; border-color: var(--zs-accent-soft); border-radius: 15px 15px 4px 15px; background: var(--zs-accent-soft); }
.zs-reply-bubble p { margin: 0; color: var(--zs-text); font-size: 13px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.zs-reply-bubble time { justify-self: end; }
.zs-reply-quote { margin: 0; padding: 4px 8px; border-left: 2px solid var(--zs-accent); color: var(--zs-text-secondary); font-size: 11px; }
.zs-reply-compose { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; padding: 12px; border-top: 1px solid var(--zs-hairline); background: var(--zs-surface); }
.zs-reply-compose textarea { flex: 1; min-height: 44px; max-height: 160px; resize: vertical; }
.zs-reply-compose small { width: 100%; padding-inline: 2px; }
.zs-social-story-sheet .zs-sheet { top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: var(--zs-vvh, 100dvh); max-width: none; max-height: none; padding: 0; overflow: hidden; border-radius: 0; background: var(--zs-lit-0a0a0e); color: var(--zs-lit-ffffff); box-shadow: none; }
.zs-social-story-sheet .zs-sheet__body { display: flex; min-height: 0; margin: 0; padding: 0; overflow: hidden; }
.zs-story-viewer { position: relative; display: grid; width: 100%; min-height: 0; grid-template-rows: auto auto minmax(0, 1fr) auto auto; overflow: hidden; isolation: isolate; background: radial-gradient(ellipse at 50% 38%, var(--zs-lit-1c1c22) 0, var(--zs-lit-15151b) 48%, var(--zs-lit-0a0a0e) 100%); color: var(--zs-lit-ffffff); touch-action: manipulation; user-select: none; }
.zs-story-viewer.is-entering { animation: zs-story-open 360ms cubic-bezier(.2,.78,.2,1) both; transform-origin: var(--zs-story-origin-x, 50%) var(--zs-story-origin-y, 50%); }
.zs-story-viewer.is-paused .zs-story-head, .zs-story-viewer.is-paused .zs-story-caption, .zs-story-viewer.is-paused .zs-story-bottom { opacity: .22; }
.zs-story-progress { z-index: 2; display: flex; gap: 4px; padding: calc(var(--zs-safe-top, 0px) + 10px) 12px 6px; }
.zs-story-progress__segment { flex: 1; height: 3px; overflow: hidden; border-radius: 99px; background: var(--zs-lit-ffffff-25); }
.zs-story-progress__fill { display: block; width: 100%; height: 100%; transform: scaleX(0); transform-origin: left center; background: var(--zs-lit-ffffff); will-change: transform; }
.zs-story-head { z-index: 2; display: flex; align-items: center; gap: 8px; padding: 4px 12px 10px; transition: opacity var(--zs-dur-fast, 120ms); }
.zs-story-identity { display: flex; flex: 1; min-width: 0; align-items: center; gap: 9px; }
.zs-story-identity > span:last-child { display: grid; min-width: 0; gap: 3px; }
.zs-story-identity b { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.zs-story-identity small { color: var(--zs-lit-ffffff-70); font-size: 10px; }
.zs-story-icon { display: grid; flex: none; width: 38px; height: 38px; place-items: center; border: 0; border-radius: 50%; background: var(--zs-lit-000000-35); color: var(--zs-lit-ffffff); font: inherit; font-size: 21px; cursor: pointer; transition: background var(--zs-dur-fast, 120ms), transform var(--zs-dur-fast, 120ms); }
.zs-story-icon:hover { transform: scale(1.05); background: var(--zs-lit-ffffff-18); }
.zs-story-stage { position: relative; display: grid; min-height: 0; place-items: center; overflow: hidden; touch-action: pan-y; }
.zs-story-stage::before { position: absolute; z-index: -1; inset: 0; background: radial-gradient(ellipse at center, var(--zs-lit-ffffff-06), transparent 70%); content: ''; }
.zs-story-media { display: block; width: 100%; height: 100%; max-width: 100%; max-height: 100%; object-fit: contain; }
.zs-story-text { display: grid; width: min(100%, 680px); min-height: min(64vh, 660px); place-items: center; padding: 28px; color: var(--zs-lit-ffffff); font-size: clamp(22px, 5vw, 34px); font-weight: 700; line-height: 1.4; text-align: center; white-space: pre-wrap; overflow-wrap: anywhere; }
.zs-story-unavailable { padding: 24px; color: var(--zs-lit-ffffff-75); text-align: center; }
.zs-story-caption { position: absolute; right: 16px; bottom: calc(112px + var(--zs-safe-bottom, 0px)); left: 16px; z-index: 2; padding: 12px 14px; border-radius: 14px; background: var(--zs-lit-000000-35); color: var(--zs-lit-ffffff); font-size: 14px; line-height: 1.45; text-align: center; text-shadow: 0 1px 8px var(--zs-lit-000000-50); transition: opacity var(--zs-dur-fast, 120ms); }
.zs-story-bottom { z-index: 2; display: flex; min-height: 72px; align-items: center; gap: 9px; padding: 10px 14px calc(var(--zs-safe-bottom, 0px) + 12px); background: linear-gradient(0deg, var(--zs-lit-000000-70), transparent); transition: opacity var(--zs-dur-fast, 120ms); }
.zs-story-bottom .zs-btn { color: var(--zs-lit-ffffff); }
.zs-story-bottom .zs-story-reply { display: flex; flex: 1; min-width: 0; gap: 7px; }
.zs-story-reply input { width: 100%; min-width: 0; min-height: 42px; padding: 0 13px; border: 1px solid var(--zs-lit-ffffff-32); border-radius: 99px; outline: none; background: var(--zs-lit-ffffff-12); color: var(--zs-lit-ffffff); font: inherit; font-size: 13px; }
.zs-story-reply input::placeholder { color: var(--zs-lit-ffffff-70); }
.zs-story-reply input:focus { border-color: var(--zs-lit-ffffff-75); }
.zs-story-reply .zs-btn { flex: none; min-height: 40px; border-radius: 99px; }
.zs-story-bottom .zs-story-reaction { flex: none; min-width: 42px; min-height: 42px; padding: 0 6px; color: var(--zs-lit-ffffff); font-size: 27px; transition: transform var(--zs-dur-fast, 120ms), color var(--zs-dur-fast, 120ms); }
.zs-story-bottom .zs-story-reaction.is-liked { color: var(--zs-danger); animation: zs-story-heart 280ms cubic-bezier(.2,.8,.2,1); }
.zs-story-sound { flex: none; min-height: 38px; padding: 0 11px; border: 1px solid var(--zs-lit-ffffff-25); border-radius: 99px; background: var(--zs-lit-000000-35); color: var(--zs-lit-ffffff); font: inherit; font-size: 11px; }
.zs-story-menu { position: absolute; z-index: 4; top: calc(var(--zs-safe-top, 0px) + 58px); right: 12px; display: grid; min-width: 170px; padding: 6px; border: 1px solid var(--zs-lit-ffffff-14); border-radius: 16px; background: var(--zs-lit-1c1c22); box-shadow: 0 12px 32px var(--zs-lit-000000-35); }
.zs-story-menu[hidden] { display: none; }
.zs-story-menu .zs-btn { justify-content: flex-start; color: var(--zs-lit-ffffff); }
.zs-story-viewers-sheet .zs-sheet__body { padding-top: 6px; }
.zs-story-viewers { display: grid; gap: 2px; max-height: 45vh; overflow: auto; }
@keyframes zs-story-open { from { opacity: .5; transform: scale(.94); } to { opacity: 1; transform: scale(1); } }
@keyframes zs-story-heart { 45% { transform: scale(1.28); } 100% { transform: scale(1); } }
@keyframes zs-social-enter { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
@media (min-width: 720px) {
  .zs-social-page { padding: 22px 20px 36px; }
  .zs-social-card { padding: 20px; }
  .zs-social-head { padding-inline: 8px; }
}
@media (max-width: 719px) {
  .zs-social-page.zs-status-compose-page { width: 100%; max-width: none; padding-inline: 0; }
  .zs-social-page.zs-status-compose-page .zs-social-head { padding-inline: 12px; }
  .zs-social-page.zs-status-compose-page .zs-status-compose { margin-inline: 0; padding: 14px 12px; border-right: 0; border-left: 0; border-radius: 0; box-shadow: none; }
}
@media (max-width: 480px) {
  .zs-social-page { padding-inline: 10px; }
  .zs-social-card { padding: 13px; }
  .zs-social-result { align-items: flex-start; flex-direction: column; }
  .zs-social-row { align-items: flex-start; flex-direction: column; }
  .zs-social-row__actions { width: 100%; justify-content: flex-start; }
  .zs-social-share { align-items: flex-start; }
  .zs-social-share .zs-qr { width: 78px; height: 78px; }
  .zs-status-person { grid-template-columns: auto minmax(0, 1fr) auto; }
  .zs-status-person .zs-status-actions { grid-column: 1 / -1; }
  .zs-status-mine__row { flex-wrap: wrap; }
  .zs-status-metrics small { width: 100%; margin-left: 0; }
  .zs-status-delivery-card { padding: 11px; }
  .zs-status-delivery-card.is-unavailable { grid-template-columns: minmax(0, 1fr); }
  .zs-status-recipient-panel { height: min(340px, 40vh); min-height: 190px; }
  .zs-status-delivery-card__tools { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 9px 10px; }
  .zs-status-contact-picker { padding-inline: 8px; }
  .zs-reply-thread-view { min-height: 64vh; }
  .zs-reply-bubble { max-width: 94%; }
  .zs-reply-compose { gap: 6px; padding: 9px; }
  .zs-reply-compose .zs-btn { padding-inline: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .zs-social-row { animation: none; }
  .zs-social-suggestion { transition: none; }
  .zs-status-mine, .zs-status-group, .zs-status-mine-card { animation: none; }
  .zs-status-color, .zs-status-file, .zs-status-avatar-button, .zs-status-person__items > .is-clickable, .zs-story-icon, .zs-story-reaction { transition: none; }
  .zs-story-viewer.is-entering, .zs-story-reaction.is-liked { animation: none; }
  .zs-story-head, .zs-story-caption, .zs-story-bottom { transition: none; }
  .zs-reply-thread, .zs-reply-bubble { animation: none; transition: none; }
}

/* ============ Contacts page · 2026-11 redesign (zs-social--v2) ============ */
html .zs-social--v2 { box-sizing: border-box; padding-top: 18px; padding-bottom: calc(var(--zs-tabbar-h, 64px) + var(--zs-safe-bottom, 0px) + 36px); color: var(--zs-text); }
html .zs-social--v2 > * { animation: zs-social-rise .45s cubic-bezier(.2, .8, .2, 1) both !important; }
html .zs-social--v2 > :nth-child(2) { animation-delay: .07s !important; }
/* Header */
html .zs-social--v2 .zs-social-head { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; gap: 16px; margin: 0 0 18px; padding: 20px 22px; border: 1.5px solid transparent; border-radius: 24px; background: linear-gradient(var(--zs-surface), var(--zs-surface)) padding-box, linear-gradient(120deg, #b12bf2 0%, #6a4dff 52%, #19b6ff 100%) border-box; box-shadow: 0 26px 60px -40px rgba(106, 77, 255, .8); }
html .zs-social--v2 .zs-social-head::before { content: ""; position: absolute; z-index: -1; top: -120px; right: -80px; width: 300px; height: 300px; border-radius: 50%; background: radial-gradient(circle, rgba(177, 43, 242, .22), transparent 68%); pointer-events: none; animation: zs-social-float 10s ease-in-out infinite !important; }
html .zs-social-head__icon { display: grid; width: 52px; height: 52px; flex: none; place-items: center; border-radius: 17px; color: #fff; background: linear-gradient(135deg, #b12bf2, #6a4dff 55%, #19b6ff); box-shadow: 0 14px 28px -14px rgba(106, 77, 255, .95); }
html .zs-social-head__text { flex: 1 1 auto; min-width: 0; }
html .zs-social--v2 .zs-social-head h1 { margin: 0; font-size: 26px; line-height: 1.15; font-weight: 800; letter-spacing: -.02em; }
html .zs-social--v2 .zs-social-head p { margin: 4px 0 0; font-size: 14px; line-height: 1.5; color: var(--zs-text-secondary); }
html body .zs-social--v2 .zs-social-head__add { display: inline-flex; align-items: center; gap: 8px; flex: none; min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px; color: #fff; background: linear-gradient(100deg, #b12bf2 0%, #6a4dff 52%, #19b6ff 100%); font: inherit; font-weight: 750; cursor: pointer; box-shadow: 0 14px 28px -16px rgba(106, 77, 255, .95); transition: transform .16s ease; }
html body .zs-social--v2 .zs-social-head__add:hover { transform: translateY(-2px); }
html body .zs-social--v2 .zs-social-head__add:focus-visible { outline: 2px solid #6a4dff; outline-offset: 3px; }
/* Layout */
html .zs-social-layout { display: grid; gap: 18px; }
html .zs-social-side { display: grid; gap: 18px; align-content: start; }
@media (min-width: 1000px) { html .zs-social-layout { grid-template-columns: minmax(0, 1fr) minmax(320px, 380px); align-items: start; } html .zs-social-side { position: sticky; top: 16px; } }
/* Cards */
html .zs-social--v2 .zs-social-card { margin: 0; padding: 20px; border: 1px solid var(--zs-border); border-radius: 22px; background: var(--zs-surface); box-shadow: var(--zs-shadow-xs); }
html .zs-social--v2 .zs-social-card__head { margin: 0 0 14px; }
html .zs-social--v2 .zs-social-card__head h2 { margin: 0; font-size: 17px; line-height: 1.25; font-weight: 760; letter-spacing: -.01em; }
html .zs-social--v2 .zs-social-card__head p { margin: 4px 0 0; font-size: 13px; line-height: 1.45; color: var(--zs-text-secondary); }
html .zs-social-listhead { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
html .zs-social--v2 .zs-social-filter { flex: 0 1 280px; min-width: 200px; min-height: 42px; border-radius: 999px; padding-left: 16px; }
/* Tabs */
html .zs-social--v2 .zs-social-tabs { display: flex; gap: 4px; margin: 0 0 14px; padding: 4px; border: 1px solid var(--zs-border); border-radius: 999px; background: var(--zs-surface-2); width: fit-content; max-width: 100%; }
html .zs-social--v2 .zs-social-tab { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 16px; border: 0; border-radius: 999px; color: var(--zs-text-secondary); background: none; font: inherit; font-size: 14px; font-weight: 650; cursor: pointer; transition: background .16s ease, color .16s ease; }
html .zs-social--v2 .zs-social-tab:hover { color: var(--zs-text); }
html .zs-social--v2 .zs-social-tab.is-active { color: #fff; background: linear-gradient(100deg, #b12bf2 0%, #6a4dff 52%, #19b6ff 100%); box-shadow: 0 10px 22px -14px rgba(106, 77, 255, .95); }
html .zs-social-tab__count { display: inline-grid; min-width: 20px; height: 20px; place-items: center; padding: 0 6px; border-radius: 999px; font-size: 11.5px; font-weight: 750; color: inherit; background: rgba(124, 92, 255, .18); box-sizing: border-box; }
html .zs-social--v2 .zs-social-tab.is-active .zs-social-tab__count { background: rgba(255, 255, 255, .24); }
/* Contact rows */
html .zs-social--v2 .zs-social-list { display: grid; gap: 8px; }
html .zs-social--v2 .zs-social-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--zs-border); border-radius: 18px; background: var(--zs-surface-2); transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease; animation: zs-social-rise .35s cubic-bezier(.2, .8, .2, 1) both !important; }
html .zs-social--v2 .zs-social-row:hover { transform: translateY(-1px); border-color: rgba(124, 92, 255, .5); box-shadow: 0 16px 30px -24px rgba(106, 77, 255, .9); }
html .zs-social--v2 .zs-social-row[hidden] { display: none; }
html .zs-social--v2 .zs-social-person { display: flex; align-items: center; gap: 12px; flex: 1 1 auto; min-width: 0; }
html .zs-social--v2 .zs-social-person > div { display: grid; gap: 1px; min-width: 0; }
html .zs-social--v2 .zs-social-person b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; font-weight: 700; }
html .zs-social--v2 .zs-social-person small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; color: var(--zs-text-secondary); }
html .zs-social-row__badge { flex: none; padding: 4px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
html .zs-social-row__badge.is-in { color: #fff; background: linear-gradient(100deg, #b12bf2, #6a4dff); }
html .zs-social-row__badge.is-out { color: var(--zs-text-secondary); background: var(--zs-surface); border: 1px solid var(--zs-border); }
html .zs-social--v2 .zs-social-row__actions { display: flex; gap: 6px; flex: none; }
html body .zs-social--v2 .zs-social-row__actions .zs-btn { min-height: 36px; padding: 0 14px; border-radius: 999px; font-size: 13px; font-weight: 700; }
html body .zs-social--v2 .zs-social-row__actions .zs-btn--primary { border: 0 !important; color: #fff !important; background: linear-gradient(100deg, #b12bf2 0%, #6a4dff 52%, #19b6ff 100%) !important; }
html .zs-social-nomatch { margin: 6px 4px; font-size: 13.5px; color: var(--zs-text-secondary); }
/* Side cards */
html .zs-social--v2 .zs-social-search { display: grid; gap: 10px; }
html .zs-social--v2 .zs-social-field { display: grid; gap: 6px; }
html .zs-social--v2 .zs-social-field > span { font-size: 13px; font-weight: 650; color: var(--zs-text-secondary); }
html .zs-social--v2 .zs-social-field .zs-input, html .zs-social--v2 .zs-social-handle__input { min-height: 46px; border-radius: 14px; }
html .zs-social--v2 .zs-social-handle__input { display: flex; align-items: center; gap: 4px; padding-left: 14px; border: 1px solid var(--zs-border); background: var(--zs-surface-2); }
html .zs-social--v2 .zs-social-handle__input > span { font-weight: 800; color: var(--zs-accent-text, #7c5cff); }
html .zs-social--v2 .zs-social-handle__input .zs-input { flex: 1; min-width: 0; border: 0; background: none; box-shadow: none; }
html body .zs-social--v2 .zs-social-side .zs-btn--primary { border: 0 !important; color: #fff !important; background: linear-gradient(100deg, #b12bf2 0%, #6a4dff 52%, #19b6ff 100%) !important; border-radius: 999px; font-weight: 750; }
html body .zs-social--v2 .zs-social-side .zs-btn { border-radius: 999px; }
html .zs-social--v2 .zs-social-result { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid rgba(124, 92, 255, .45); border-radius: 16px; background: rgba(124, 92, 255, .08); }
html .zs-social--v2 .zs-social-share { display: flex; align-items: center; gap: 14px; margin-top: 14px; padding: 14px; border: 1px dashed var(--zs-border); border-radius: 18px; background: var(--zs-surface-2); }
html .zs-social--v2 .zs-social-share > div { display: grid; gap: 6px; min-width: 0; }
html .zs-social--v2 .zs-social-share b { overflow-wrap: anywhere; font-size: 13px; }
html .zs-social--v2 .zs-social-share small { font-size: 12.5px; color: var(--zs-text-secondary); }
html .zs-social--v2 .zs-social-share canvas, html .zs-social--v2 .zs-social-share img, html .zs-social--v2 .zs-social-share svg { flex: none; padding: 6px; border-radius: 14px; background: #fff; }
@keyframes zs-social-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes zs-social-float { 50% { transform: translate(-16px, 20px) scale(1.06); } }
/* Phones */
@media (max-width: 640px) {
  html .zs-social--v2 { padding-top: 10px; }
  html .zs-social--v2 .zs-social-head { flex-wrap: wrap; gap: 12px; padding: 16px; border-radius: 20px; }
  html .zs-social-head__icon { width: 44px; height: 44px; border-radius: 14px; }
  html .zs-social--v2 .zs-social-head h1 { font-size: 22px; }
  html .zs-social--v2 .zs-social-head p { font-size: 13px; }
  html body .zs-social--v2 .zs-social-head__add { width: 100%; justify-content: center; }
  html .zs-social--v2 .zs-social-card { padding: 15px; border-radius: 19px; }
  html .zs-social--v2 .zs-social-filter { flex: 1 1 100%; min-width: 0; }
  html .zs-social--v2 .zs-social-tabs { width: 100%; box-sizing: border-box; }
  html .zs-social--v2 .zs-social-tab { flex: 1 1 0; justify-content: center; padding: 0 8px; }
  html .zs-social--v2 .zs-social-row { padding: 10px 12px; gap: 10px; }
  html .zs-social--v2 .zs-social-row.is-requests { flex-wrap: wrap; }
  html .zs-social--v2 .zs-social-row.is-requests .zs-social-row__badge { order: 3; }
  html .zs-social--v2 .zs-social-row.is-requests .zs-social-row__actions { order: 4; margin-left: auto; }
  html body .zs-social--v2 .zs-social-row__actions .zs-btn { padding: 0 10px; }
  html .zs-social--v2 .zs-social-share { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { html .zs-social--v2 > *, html .zs-social--v2 .zs-social-row, html .zs-social--v2 .zs-social-head::before { animation: none !important; } }
html .zs-social--v2 .zs-social-person, html .zs-social--v2 .zs-social-row { justify-content: flex-start; text-align: left; }
html .zs-social--v2 .zs-social-person > div { justify-items: start; }
@media (min-width: 1000px) { html .zs-social-listhead { align-items: center; } }
/* Override the older phone rule that stacked each row into a column. */
html .zs-social--v2 .zs-social-row { flex-direction: row; align-items: center; min-height: 0; }
html .zs-social--v2 .zs-social-row__actions { width: auto; flex-wrap: nowrap; justify-content: flex-end; }
