/* LIVE2 presence keeps the established header and row geometry. */
#app.main-conversation-v2-mode .conversation-peer-copy-v2 {
  display: flex; flex-direction: column; align-items: stretch; gap: 0; min-width: 0;
}
#app.main-conversation-v2-mode .conversation-peer-copy-v2 > .live-peer-headline-v1 {
  display: flex; align-items: baseline; gap: 7px; min-width: 0; max-width: 100%;
  font: inherit; letter-spacing: normal; line-height: 20px;
}
#app .live-peer-headline-v1 strong { flex: 0 1 auto; }
#app #conversationNumberV2 {
  flex: none; color: var(--pt-muted, #8d987c);
  font: 600 12px/18px ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  letter-spacing: .055em; font-variant-numeric: tabular-nums;
}
#app #conversationNumberV2:empty { display: none; }
#app.main-conversation-v2-mode .conversation-peer-copy-v2 > .live-peer-status-v1 {
  display: block; height: 16px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: var(--pt-muted, #8d987c); font: 400 11px/16px -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: normal;
}
#app.main-conversation-v2-mode .conversation-peer-copy-v2 > .is-live-accent-v1,
#app .main-chat-preview-v2.is-live-typing-v1 .main-chat-preview-text-v2 { color: var(--pt-accent, #a8c878); }
#app .main-chat-preview-v2.is-live-typing-v1 > :not(.main-chat-preview-text-v2) { display: none; }
.live-typing-dots-v1 { display: inline-flex; align-items: baseline; gap: 2px; padding-left: 2px; vertical-align: baseline; }
.live-typing-dots-v1 i {
  display: block; width: 2px; height: 2px; border-radius: 50%; background: currentColor;
  animation: live-typing-v1 1.2s ease-in-out infinite;
}
.live-typing-dots-v1 i:nth-child(2) { animation-delay: 160ms; }
.live-typing-dots-v1 i:nth-child(3) { animation-delay: 320ms; }
.live-online-dot-v1 { position: absolute; left: 39px; top: calc(50% + 13px); width: 10px; height: 10px;
  box-sizing: border-box; border: 2px solid var(--pt-bg, #0c0f0d); border-radius: 50%; background: #28b85e; pointer-events: none; }
.live-online-dot-v1[hidden] { display: none; }
@keyframes live-typing-v1 { 0%, 65%, 100% { opacity: .5; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-2px); } }
@media (prefers-reduced-motion: reduce) { .live-typing-dots-v1 i { animation: none; opacity: 1; } }
.live-presence-settings-v1 { padding: 8px 16px 28px; }
.live-presence-settings-v1 [role="radiogroup"] { display: flex; flex-direction: column; gap: 10px; }
.live-presence-choice-v1 { display: flex; align-items: flex-start; gap: 16px; width: 100%; padding: 18px 16px;
  border: 1px solid var(--pt-line, #293028); border-radius: 16px; text-align: left;
  background: var(--pt-surface, #111611); color: var(--pt-muted-strong, #a9b392); font: 400 15px/23px -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  cursor: pointer; -webkit-tap-highlight-color: transparent; }
.live-presence-choice-v1 strong { color: var(--pt-text, #dce8ae); font-weight: 600; }
.live-presence-choice-v1 > span { flex: 1; min-width: 0; }
.live-presence-choice-v1 > i { flex: 0 0 20px; margin-top: 2px; }
.live-presence-choice-v1[aria-checked="true"] { border-color: var(--pt-accent, #a8c878); }
.live-presence-choice-v1[aria-checked="true"] .appearance-radio-v5 { border-color: var(--pt-accent, #a8c878); background: var(--pt-accent, #a8c878); box-shadow: inset 0 0 0 4px var(--pt-surface, #111611); }
.live-presence-choice-v1:disabled { cursor: progress; }
.live-presence-choice-v1:focus-visible { outline: 2px solid var(--pt-accent, #a8c878); outline-offset: 3px; }
/* UPDATE1: the same delayed transport status in both headers. */
.mail-status-v1 { display:inline-flex;align-items:center;justify-content:center;gap:7px;width:max-content;max-width:100%;padding:4px 10px;border-radius:20px;background:rgba(10,12,21,.72);color:#e4e7f5;font:400 13px/18px var(--pager-ui-font);letter-spacing:0;white-space:nowrap; }
.mail-status-v1::before { content:'';box-sizing:border-box;width:12px;height:12px;flex:none;border:1.5px solid rgba(228,231,245,.3);border-top-color:currentColor;border-radius:50%;animation:mail-status-spin-v1 1s linear infinite; }
#mainNumberStatusV2.mail-status-v1 { left:50%;right:auto;bottom:auto;top:min(calc(var(--night-number-center,50%) + 42px),calc(100% - 29px));transform:translateX(-50%);z-index:2; }
#app .conversation-peer-copy-v2 > .mail-status-v1 { box-sizing:border-box;padding:1px 3px;gap:3px;font:400 11px/17px var(--pager-ui-font);letter-spacing:-.02em;color:#e4e7f5; }
@media(max-width:360px) { #mainNumberStatusV2.mail-status-v1 { top:min(calc(var(--night-number-center,50%) + 35px),calc(100% - 23px));font-size:12px;line-height:16px;padding:3px 9px; } }
.conversation-peer-copy-v2:has(> .mail-status-v1:not(.hidden)) > .live-peer-status-v1 { display:none!important; }
@keyframes mail-status-spin-v1 { to { transform:rotate(360deg); } }
@media(prefers-reduced-motion:reduce) { .mail-status-v1::before { animation:none; } }
