.v2-chat-thread-head > .v2-chat-thread-actions { flex: none; display: flex; gap: 8px; }
.v2-chat-thread-actions:empty { display: none; }
/* Call log entries inside chat bubbles. */
.v2-call-record { display: inline-flex; align-items: center; gap: 6px; font: inherit; color: inherit; white-space: nowrap; }
button.v2-call-record { padding: 0; border: 0; background: none; cursor: pointer; }
.v2-call-record svg { flex: none; }
.v2-call-record.is-missed { color: var(--brand-danger); }

html.v2-call-open, html.v2-call-open body { overflow: hidden; }
.v2-call {
  position: fixed; inset: 0; z-index: 2000; background: #1c1410; color: #fff;
  font-family: var(--brand-font); overflow: hidden;
}
.v2-call-remote { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #1c1410; opacity: 0; transition: opacity .2s; }
.v2-call.has-remote .v2-call-remote { opacity: 1; }
.v2-call-local {
  position: absolute; top: calc(16px + env(safe-area-inset-top)); right: 16px; width: min(28vw, 160px); aspect-ratio: 3 / 4;
  object-fit: contain; border-radius: 12px; background: #3d2a20; box-shadow: 0 6px 20px rgb(0 0 0 / .35); transform: scaleX(-1);
}
/* While ringing the caller sees themselves full screen, as on a phone. */
.v2-call.is-ringing:not(.has-remote) .v2-call-local { inset: 0; width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; box-shadow: none; }
.v2-call-info {
  position: absolute; top: calc(20px + env(safe-area-inset-top)); left: 20px; right: calc(min(28vw, 160px) + 32px);
  display: grid; gap: 6px; text-shadow: 0 1px 4px rgb(0 0 0 / .5);
}
.v2-call.is-ringing .v2-call-info { top: calc(20px + env(safe-area-inset-top)); left: 24px; right: 24px; text-align: center; }
.v2-call-info strong { font-size: 22px; overflow-wrap: anywhere; }
.v2-call.is-ringing .v2-call-info strong { font-size: 28px; }
.v2-call-info > span { font-size: 14px; opacity: .85; }
.v2-call-actions {
  position: absolute; left: 0; right: 0; bottom: calc(28px + env(safe-area-inset-bottom));
  display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; padding: 0 16px;
}
.v2-call-button {
  min-width: 76px; min-height: 48px; padding: 0 18px; border: 0; border-radius: 999px; font: inherit; font-size: 15px; font-weight: 600;
  color: #fff; background: rgb(255 255 255 / .18); backdrop-filter: blur(6px); cursor: pointer;
}
.v2-call-button:disabled { opacity: .5; cursor: default; }
.v2-call-button.is-danger { background: var(--brand-danger); }
.v2-call-button.is-accept { background: var(--brand-success); }
.v2-call-button:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
