/* v189: every incoming media reaction shares the timestamp row. */
._incomingMessage_12xvp_974
  ._messageBody_12xvp_1230[data-show-timestamp="true"][data-has-reactions="true"]
  ._messageBubble_12xvp_980[data-media-message="true"]
  > ._messageMeta_12xvp_1400 {
  position: absolute;
  top: 100%;
  right: 0;
  align-self: auto;
  margin: 3px 0 0;
}

/*
 * Home, Calls and Contacts each own the same control. Do not paint inactive
 * duplicates during their hand-off: the one active native control remains.
 * The Settings boundary is excluded so its native exit/entry motion remains.
 */
html:not([data-rm-page-route="settings"]):not([data-rm-search-settings-flight])
  ._pageFlightPanel_7kyn7_34:not([data-active="true"])
  [data-mobile-page-search] {
  display: none !important;
}

/* Calls/Contacts use the exact Home glyph box: 25px at button inset 9px. */
[data-mobile-page-search]
  ._searchTrigger_1sexc_96
  > ._searchGlyph_1sexc_111 {
  position: absolute !important;
  top: 9px !important;
  left: 9px !important;
}

/* Animate only the title without replacing its native translateX(-50%). */
._pageFlightPanel_7kyn7_34 [data-mobile-page-title] {
  translate: clamp(
    -18px,
    calc(var(--mobile-page-base) + var(--mobile-page-shift)),
    18px
  ) 0;
  transition:
    opacity 150ms ease,
    transform 260ms cubic-bezier(.22, 1, .36, 1),
    translate 300ms cubic-bezier(.22, 1, .36, 1) !important;
  will-change: translate, opacity;
}

/* Calls and Contacts use the exact non-floating Home call widget. */
html[data-rm-call-header-route]
  [data-call-widget="true"][data-placement="global"] {
  position: fixed !important;
  z-index: 2200 !important;
  top: calc(env(safe-area-inset-top, 0px) + 12px) !important;
  right: auto !important;
  left: 54px !important;
  width: calc(100% - 108px) !important;
  height: 44px !important;
  padding: 0 !important;
}

html[data-rm-call-header-active]
  [data-active="true"] [data-mobile-page-title] {
  opacity: 0 !important;
  pointer-events: none !important;
}

html[data-rm-call-header-search-open]
  [data-call-widget="true"][data-placement="global"] {
  visibility: hidden !important;
  opacity: 0 !important;
  transform: translate3d(10px, 0, 0) scale(.96) !important;
  pointer-events: none !important;
}

/* Optical centering for the New call glyph only. */
img[src$="/figma/mobile-calls-contacts/exact/call-add.svg"] {
  transform: translate3d(-1px, 1px, 0);
}

@media (prefers-reduced-motion: reduce) {
  ._pageFlightPanel_7kyn7_34 [data-mobile-page-title] {
    transition-duration: 1ms !important;
  }
}

/* At the Settings boundary, the sole search button copies the right action. */
html[data-rm-search-settings-flight]
  ._pageFlightPanel_7kyn7_34 [data-mobile-page-search] {
  opacity: 0 !important;
  transform: scale(.72) rotate(-12deg) !important;
  transition:
    opacity 150ms ease,
    transform 300ms cubic-bezier(.22, 1, .36, 1) !important;
}

html[data-rm-search-settings-flight]
  ._pageFlightPanel_7kyn7_34[data-active="true"]
  [data-mobile-page-search] {
  opacity: 1 !important;
  transform: scale(1) rotate(0) !important;
}

/* Give the Settings title's descender room without moving its centre. */
html[data-rm-page-route="settings"]
  ._pageFlightPanel_7kyn7_34[data-active="true"]
  [data-mobile-page-title] {
  top: 10px !important;
  line-height: 24px !important;
}

/* v191 is scoped to the white Calls sheet. */
html[data-rm-page-route="calls"] ._sheet_hfn06_19 ._scroller_hfn06_32 {
  box-sizing: border-box;
  padding: 36px 20px calc(82px + env(safe-area-inset-bottom, 0px));
}

html[data-rm-page-route="calls"] ._sheet_hfn06_19 ._scroller_hfn06_32 > h2 {
  margin: 0 4px 14px;
  font: 500 16px/20px 'Caros', sans-serif;
}

html[data-rm-page-route="calls"] ._sheet_hfn06_19 ._callRow_hfn06_55 {
  height: 80px;
  grid-template-columns: minmax(0, 1fr) 86px;
  align-items: center;
}

html[data-rm-page-route="calls"] ._sheet_hfn06_19 ._callRow_hfn06_55::after {
  left: 0;
}

html[data-rm-page-route="calls"] ._sheet_hfn06_19 ._callIdentity_hfn06_72 {
  height: 80px;
  align-items: center;
}

html[data-rm-page-route="calls"] ._sheet_hfn06_19 ._callCopy_hfn06_108 {
  padding-top: 0;
  gap: 5px;
}

html[data-rm-page-route="calls"] ._sheet_hfn06_19 ._callCopy_hfn06_108 > strong {
  font: 500 18px/22px 'Caros', sans-serif;
}

html[data-rm-page-route="calls"] ._sheet_hfn06_19 ._callCopy_hfn06_108 > small {
  font: 400 13px/18px 'Circular Std', 'Inter', sans-serif;
}

html[data-rm-page-route="calls"] ._sheet_hfn06_19 ._callActions_hfn06_140 {
  height: 80px;
  grid-template-columns: repeat(2, 38px);
  justify-content: end;
  align-items: center;
  gap: 10px;
}

html[data-rm-page-route="calls"] ._sheet_hfn06_19 ._callActions_hfn06_140 button {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(0, 14, 8, .045);
  border-radius: 13px;
  background: #f5f7f6;
}

html[data-rm-page-route="calls"] ._sheet_hfn06_19 ._callActions_hfn06_140 button img {
  filter: brightness(0);
  opacity: .43;
}

html[data-rm-page-route="calls"] ._sheet_hfn06_19 ._callActions_hfn06_140 button:first-child img {
  width: 22px;
  height: 22px;
  content: url('/figma/mobile-chat/icons/call.svg');
}

html[data-rm-page-route="calls"] ._sheet_hfn06_19 ._callActions_hfn06_140 button:last-child img {
  width: 27px;
  height: 27px;
  content: url('/figma/mobile-chat/icons/video.svg');
}

html[data-rm-page-route="calls"] ._sheet_hfn06_19 ._loadMore_hfn06_194 {
  min-height: 40px;
  margin: 20px auto 0;
  border: 1px solid rgba(62, 149, 194, .2);
  border-radius: 20px;
  padding: 0 20px;
  display: block;
  background: rgba(62, 149, 194, .055);
  font: 500 14px/18px 'Caros', sans-serif;
}

html[data-mobile-theme="dark"][data-rm-page-route="calls"]
  ._sheet_hfn06_19 ._callActions_hfn06_140 button {
  border-color: rgba(255, 255, 255, .06);
  background: rgba(255, 255, 255, .055);
}

html[data-mobile-theme="dark"][data-rm-page-route="calls"]
  ._sheet_hfn06_19 ._callActions_hfn06_140 button img {
  filter: none;
  opacity: .72;
}

/* No section label in the Calls sheet; the first row starts closer to its top. */
html[data-rm-page-route="calls"] ._sheet_hfn06_19 ._scroller_hfn06_32 {
  padding-top: 28px;
}

/* Keep the approved icon sizes but remove only their backing tiles. */
html[data-rm-page-route="calls"] ._sheet_hfn06_19 ._callActions_hfn06_140 button {
  border: 0;
  background: transparent;
}
[data-rm-contacts-v196="true"] .rm-contact-sync-card {
  width:100%;min-height:72px;margin:-12px 0 24px;border:1px solid var(--directory-divider);border-radius:20px;padding:12px 14px;display:grid;grid-template-columns:42px minmax(0,1fr) 18px;align-items:center;gap:12px;background:rgba(121,124,123,.045);color:inherit;text-align:left;transition:transform 110ms ease,background 110ms ease
}
[data-rm-contacts-v196="true"] .rm-contact-sync-card:active {transform:scale(.985);background:rgba(121,124,123,.085)}
[data-rm-contacts-v196="true"] .rm-contact-sync-card>span:nth-child(2){min-width:0;display:grid;gap:5px}
[data-rm-contacts-v196="true"] .rm-contact-sync-card strong,[data-rm-contacts-v196="true"] .rm-contact-sync-card small{display:block}
[data-rm-contacts-v196="true"] .rm-contact-sync-card strong{font:500 15px/18px Caros,sans-serif}
[data-rm-contacts-v196="true"] .rm-contact-sync-card small{color:var(--directory-muted);font:400 12px/16px "Circular Std",Inter,sans-serif}
.rm-contact-sync-icon{position:relative;width:42px;height:42px;border-radius:14px;display:block;background:rgba(121,124,123,.1)}
.rm-contact-sync-icon i{position:absolute;top:9px;left:15px;width:12px;height:12px;border:1.5px solid var(--directory-muted);border-radius:50%}
.rm-contact-sync-icon b{position:absolute;right:9px;bottom:8px;left:9px;height:10px;border:1.5px solid var(--directory-muted);border-radius:9px 9px 5px 5px}
.rm-contact-sync-chevron{width:8px;height:8px;border-top:1.5px solid var(--directory-muted);border-right:1.5px solid var(--directory-muted);transform:rotate(45deg)}
[data-rm-contacts-v196="true"] .rm-contact-inline-error{margin:-6px 0 12px;border-radius:12px;padding:9px 12px;background:rgba(213,87,87,.1);color:#b94848;font-size:12px;line-height:16px}
[data-rm-contacts-v196="true"] button[data-opening="true"]{opacity:.62}
.rm-contact-sync-sheet{min-height:0!important;max-height:min(88%,720px)!important}
.rm-contact-sync-body{display:grid;gap:12px;padding:6px 0 4px}
.rm-contact-sync-privacy{min-height:72px;border-radius:18px;padding:12px;display:grid;grid-template-columns:42px minmax(0,1fr);align-items:center;gap:12px;background:rgba(121,124,123,.065)}
.rm-contact-sync-privacy p{min-width:0;margin:0;display:grid;gap:4px}.rm-contact-sync-privacy strong,.rm-contact-sync-privacy small{display:block}
.rm-contact-sync-privacy strong{font:500 14px/18px Caros,sans-serif}.rm-contact-sync-privacy small{color:var(--directory-muted);font:400 12px/16px "Circular Std",Inter,sans-serif}
.rm-contact-native-picker,.rm-contact-sync-submit,.rm-contact-vcard-button{width:100%;height:46px;border-radius:15px;padding:0 16px;font:500 14px/18px Caros,sans-serif}
.rm-contact-native-picker:disabled,.rm-contact-sync-submit:disabled,.rm-contact-vcard-button:disabled{opacity:.55}
.rm-contact-native-picker,.rm-contact-sync-submit{border:0;background:#3e95c2;color:#fff}
.rm-contact-vcard-button{border:1px solid var(--directory-divider);background:transparent;color:var(--directory-text)}
.rm-contact-phone-input{display:grid;gap:7px}.rm-contact-phone-input>span{padding-left:2px;color:var(--directory-muted);font:500 12px/16px "Circular Std",Inter,sans-serif}
.rm-contact-phone-input textarea{box-sizing:border-box;width:100%;min-height:92px;resize:none;border:1px solid var(--directory-divider);border-radius:15px;outline:0;padding:12px 13px;background:rgba(121,124,123,.05);color:var(--directory-text);font:400 15px/21px "Circular Std",Inter,sans-serif}
.rm-contact-phone-input textarea:focus{border-color:rgba(62,149,194,.55)}.rm-contact-phone-input textarea::placeholder{color:var(--directory-muted)}
.rm-contact-hidden-file{position:absolute;width:1px;height:1px;overflow:hidden;opacity:0;pointer-events:none}
.rm-contact-sync-error,.rm-contact-sync-success{margin:0;border-radius:12px;padding:10px 12px;font:400 12px/17px "Circular Std",Inter,sans-serif}
.rm-contact-sync-error{background:rgba(213,87,87,.1);color:#b94848}.rm-contact-sync-success{background:rgba(52,168,115,.11);color:#25845a}
html[data-mobile-theme="dark"] [data-rm-contacts-v196="true"] .rm-contact-sync-card{background:rgba(255,255,255,.045)}
html[data-mobile-theme="dark"] [data-rm-contacts-v196="true"] .rm-contact-sync-card:active{background:rgba(255,255,255,.075)}
html[data-mobile-theme="dark"] .rm-contact-sync-privacy,html[data-mobile-theme="dark"] .rm-contact-phone-input textarea{background:rgba(255,255,255,.05)}
html[data-mobile-theme="dark"] .rm-contact-sync-success{color:#6fd1a6}
@media(prefers-reduced-motion:reduce){[data-rm-contacts-v196="true"] .rm-contact-sync-card{animation-duration:1ms;transition-duration:1ms}}
