:root {
  --aw-viewport-height: 100dvh;
  --aw-safe-top: env(safe-area-inset-top, 0px);
  --aw-safe-bottom: env(safe-area-inset-bottom, 0px);
}
.aw-header-badge-control {
  flex-shrink: 0;
  overflow: visible;
}
.aw-header-badge {
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 3px;
  line-height: 14px;
  z-index: 1;
  pointer-events: none;
}
html,
body {
  width: 100%;
  max-width: 100%;
}
.h-screen {
  height: var(--aw-viewport-height);
}
.min-h-screen {
  min-height: var(--aw-viewport-height);
}
[data-safe-bottom] {
  padding-bottom: calc(var(--aw-bottom-padding, 12px) + var(--aw-safe-bottom)) !important;
}
[data-safe-fab] {
  bottom: calc(
    var(--aw-fab-bottom) + var(--aw-safe-bottom) + var(--aw-keyboard-offset, 0px)
  ) !important;
}
[data-safe-dialog] {
  max-height: calc(var(--aw-viewport-height) - var(--aw-safe-top) - var(--aw-safe-bottom) - 24px);
  overflow-y: auto;
}
@media (max-width: 767px) {
  body.aw-bottom-nav {
    padding-bottom: calc(5rem + var(--aw-safe-bottom));
  }
  html.aw-keyboard nav[data-safe-bottom] {
    display: none;
  }
}
body[data-call-screen] {
  height: var(--aw-viewport-height);
}
body[data-call-screen] > [data-call-layout] {
  padding-top: max(12px, var(--aw-safe-top));
  padding-bottom: max(12px, var(--aw-safe-bottom));
  padding-left: max(12px, env(safe-area-inset-left, 0px));
  padding-right: max(12px, env(safe-area-inset-right, 0px));
}
body[data-call-screen] video[data-role] {
  transform: none !important;
}
.aw-call-controls {
  max-width: 100%;
  flex-wrap: wrap;
  justify-content: center;
}
[data-call-speaker] {
  z-index: 80;
  pointer-events: auto;
}
body.aw-call-minimized > :not(#aw-call-frame):not(#aw-audio):not(script):not(style) {
  visibility: hidden !important;
  pointer-events: none !important;
}
#aw-call-frame {
  position: fixed;
  inset: 0;
  z-index: 2147483001;
  width: 100%;
  height: var(--aw-viewport-height);
  border: 0;
  background: #0b141a;
}
#aw-call-frame[hidden] {
  display: none;
}

.aw-camera-state {
  max-width: calc(100% - 24px);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.aw-camera-state [data-identity] {
  max-width: min(60vw, 340px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
  display: inline-block;
}
.aw-call-caption {
  max-width: calc(100% - 32px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.aw-call-caption [data-identity] {
  max-width: calc(100% - 20px);
  vertical-align: middle;
}

.app-shell {
  height: var(--aw-viewport-height) !important;
}
.fixed.bottom-0 {
  bottom: var(--aw-keyboard-offset, 0px);
}
[data-safe-dialog-container] {
  height: var(--aw-viewport-height);
  bottom: auto;
}

body[data-call-screen] video[data-role][data-local-preview='front'] {
  transform: scaleX(-1) !important;
}

/* Own-message links inherit the bubble's contrasting text, not its green fill. */
[data-message-menu][data-own='1'] a[data-external-link],
.bubble.me .message-text a[data-external-link] {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
