/*
 * Voice rooms of the tessairact|code chat (voice_bar.js, EPIC 27c336ed58f5 items 3, 3b and 4): the
 * "Voice" section of the sidebar and of the phone's Home (rooms, the people in them, a ring around
 * whoever speaks, a mark for a shared screen), the call bar (at the bottom of the sidebar on desktop
 * and tablet, above the tab bar on a phone), the voice stage of an open room (voice_stage.js: tiles,
 * "Join voice", the call's controls) and the viewer of shared screens (voice_screen.js: large on the
 * stage, a full-screen sheet on a phone). Every control is at least 44 x 44 px. Tokens come from
 * chat.css; the phone rules win over mobile_shell.css (loaded later) by their selectors, not by load
 * order.
 */

/* ------------------------------------------------------------------------- icons */

.chat-voice-icon,
.chat-voice-mark {
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.chat-voice-icon {
  width: 16px;
  height: 16px;
}

.chat-voice-mark {
  width: 14px;
  height: 14px;
  color: var(--red);
}

/* Sharing the screen is not a fault: the mark has the call's colour. */
.chat-voice-mark-share {
  color: var(--cyan);
}

.chat-voice-room-icon {
  color: var(--muted);
}

.chat-channel[aria-current="true"] .chat-voice-room-icon {
  color: inherit;
}

/* ------------------------------------------------------------------------- rooms and people */

.chat-voice-section,
.chat-voice-toggle,
.chat-voice-room-block {
  min-width: 0;
}

.chat-voice-rooms {
  display: grid;
  gap: 1px;
}

/* The others' audio elements (voice_client.js); sound needs no box. */
.chat-voice-audio-host {
  display: none;
}

.chat-voice-room[data-call="true"] .chat-channel-name {
  color: var(--lime);
  font-weight: 700;
}

.chat-voice-room[aria-current="true"][data-call="true"] .chat-channel-name {
  color: inherit;
}

.chat-voice-room[data-phase="joining"] .chat-voice-room-icon,
.chat-voice-room[data-phase="reconnecting"] .chat-voice-room-icon {
  color: var(--amber);
}

.chat-voice-count {
  flex: none;
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.chat-channel[aria-current="true"] .chat-voice-count {
  color: inherit;
}

.chat-voice-people {
  display: grid;
  gap: 2px;
  margin: 2px 0 6px;
  padding: 0 0 0 26px;
  list-style: none;
}

.chat-voice-person {
  display: flex;
  gap: 8px;
  align-items: center;
  min-width: 0;
  min-height: 28px;
  color: var(--muted-bright);
  font-size: 13px;
}

.chat-voice-person-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-voice-person[data-me="true"] .chat-voice-person-name {
  font-weight: 650;
}

.chat-voice-avatar {
  display: inline-flex;
  flex: none;
  border-radius: 7px;
  transition: box-shadow 120ms ease-out;
}

/* The speaking ring: a gap in the list's colour, then the ring. */
.chat-voice-person[data-speaking="true"] .chat-voice-avatar {
  box-shadow:
    0 0 0 2px var(--panel-raised),
    0 0 0 4px var(--lime);
}

.chat-voice-section[data-place="home"] .chat-voice-person[data-speaking="true"] .chat-voice-avatar {
  box-shadow:
    0 0 0 2px var(--panel-solid),
    0 0 0 4px var(--lime);
}

/* ------------------------------------------------------------------------- the call bar */

.chat-voice-slot {
  min-width: 0;
}

.chat-voice-bar {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-solid);
}

.chat-voice-bar-room {
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 0;
  min-height: 44px;
  padding: 4px 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--lime);
  text-align: left;
  cursor: pointer;
}

.chat-voice-bar-room:hover {
  background: var(--cyan-soft);
}

.chat-voice-bar[data-phase="joining"] .chat-voice-bar-room,
.chat-voice-bar[data-phase="reconnecting"] .chat-voice-bar-room {
  color: var(--amber);
}

.chat-voice-bar-room .chat-voice-icon {
  width: 20px;
  height: 20px;
}

.chat-voice-bar-text {
  display: grid;
  min-width: 0;
}

.chat-voice-bar-status {
  font-size: 12px;
  font-weight: 750;
}

.chat-voice-bar-name {
  overflow: hidden;
  color: var(--text);
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-voice-bar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chat-voice-control {
  display: inline-flex;
  flex: 1 0 44px;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel-raised);
  color: var(--muted-bright);
  font-weight: 650;
  cursor: pointer;
}

.chat-voice-control:hover:not(:disabled) {
  border-color: var(--cyan);
  color: var(--cyan);
}

.chat-voice-control:disabled {
  opacity: 0.55;
  cursor: default;
}

.chat-voice-control .chat-voice-icon {
  width: 22px;
  height: 22px;
}

.chat-voice-control[aria-pressed="true"] {
  border-color: var(--red);
  background: rgba(180, 35, 24, 0.09);
  color: var(--red);
}

.chat-voice-control[data-control="leave"] {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
}

.chat-voice-control[data-control="leave"]:hover:not(:disabled) {
  border-color: #8f1c13;
  background: #8f1c13;
  color: #fff;
}

.chat-voice-start-audio {
  width: 100%;
  border-color: var(--cyan);
  background: var(--cyan);
  color: #fff;
}

.chat-voice-bar-note {
  margin: 0;
  color: var(--amber);
  font-size: 12px;
}

.chat-voice-bar-note:empty {
  display: none;
}

/* Share screen (desktop and tablet only) and "Watch …'s screen": full-width rows under the controls. */
.chat-voice-share,
.chat-voice-watch {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel-raised);
  color: var(--muted-bright);
  font-weight: 650;
  cursor: pointer;
}

.chat-voice-share .chat-voice-icon,
.chat-voice-watch .chat-voice-icon {
  width: 20px;
  height: 20px;
}

.chat-voice-share-text,
.chat-voice-watch span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-voice-share:hover:not(:disabled) {
  border-color: var(--cyan);
  color: var(--cyan);
}

.chat-voice-share:disabled {
  opacity: 0.55;
  cursor: default;
}

.chat-voice-share[aria-pressed="true"] {
  border-color: var(--cyan);
  background: var(--cyan);
  color: #fff;
}

.chat-voice-share[aria-pressed="true"]:hover:not(:disabled) {
  border-color: #00555c;
  background: #00555c;
  color: #fff;
}

.chat-voice-watch {
  border-color: var(--cyan);
  background: var(--cyan-soft);
  color: var(--cyan);
}

.chat-voice-watch:hover {
  background: rgba(0, 111, 120, 0.18);
}

/* The phone bar exists on every page; only the phone layout shows it. */
.chat-voice-bar[data-place="phone"] {
  display: none;
}

/* ------------------------------------------------------------------------- phone */

/* While a call runs the shell gets a row for the bar above the tab bar (mobile_shell.css has two). */
html[data-chat-layout="phone"] .chat-app > .chat-shell[data-voice="on"] {
  grid-template-rows: minmax(0, 1fr) auto auto;
}

html[data-chat-layout="phone"] .chat-app > .chat-shell[data-voice="on"] > .chat-tabbar {
  grid-area: 3 / 1;
}

html[data-chat-layout="phone"] .chat-shell > .chat-voice-bar[data-place="phone"] {
  z-index: 3;
  display: grid;
  grid-area: 2 / 1;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  padding: 6px max(10px, env(safe-area-inset-right)) 6px max(10px, env(safe-area-inset-left));
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.98);
}

/* A thread covers its channel, not the call: while a call runs it takes the shell's content row
   instead of the whole shell (mobile_shell.css lays it over everything), so the bar stays usable. */
html[data-chat-layout="phone"] .chat-app > .chat-shell[data-voice="on"] > .chat-thread {
  position: relative;
  inset: auto;
  grid-area: 1 / 1;
}

/* On a screen without the tab bar the bar is the last row: it keeps clear of the home indicator. */
html[data-chat-layout="phone"] .chat-shell:not([data-screen="home"], [data-screen="dms"], [data-screen="activity"], [data-screen="you"]) > .chat-voice-bar[data-place="phone"] {
  padding-bottom: max(6px, env(safe-area-inset-bottom));
}

html[data-chat-layout="phone"] .chat-shell > .chat-voice-bar[data-place="phone"] .chat-voice-bar-actions {
  flex-wrap: nowrap;
}

html[data-chat-layout="phone"] .chat-shell > .chat-voice-bar[data-place="phone"] .chat-voice-control {
  flex: none;
  width: 44px;
  padding: 0;
}

html[data-chat-layout="phone"] .chat-shell > .chat-voice-bar[data-place="phone"] .chat-voice-start-audio,
html[data-chat-layout="phone"] .chat-shell > .chat-voice-bar[data-place="phone"] .chat-voice-watch,
html[data-chat-layout="phone"] .chat-shell > .chat-voice-bar[data-place="phone"] .chat-voice-bar-note {
  grid-column: 1 / -1;
}

html[data-chat-layout="phone"] .chat-shell > .chat-voice-bar[data-place="phone"] .chat-voice-start-audio {
  width: 100%;
  padding: 0 12px;
}

/* The on-screen keyboard leaves room for the composer only. */
html[data-chat-layout="phone"][data-chat-keyboard="open"] .chat-shell > .chat-voice-bar[data-place="phone"] {
  display: none;
}

html[data-chat-layout="phone"] .chat-voice-section[data-place="home"] .chat-voice-rooms {
  gap: 0;
}

html[data-chat-layout="phone"] .chat-voice-section[data-place="home"] .chat-voice-room {
  gap: 12px;
  min-height: 48px;
  padding: 8px max(16px, env(safe-area-inset-right)) 8px max(16px, env(safe-area-inset-left));
  border-radius: 0;
  font-size: 16px;
  -webkit-tap-highlight-color: transparent;
}

html[data-chat-layout="phone"] .chat-voice-section[data-place="home"] .chat-voice-room:active {
  background: var(--cyan-soft);
}

html[data-chat-layout="phone"] .chat-voice-section[data-place="home"] .chat-voice-room-icon {
  width: 24px;
}

html[data-chat-layout="phone"] .chat-voice-section[data-place="home"] .chat-voice-room-icon .chat-voice-icon {
  width: 20px;
  height: 20px;
}

html[data-chat-layout="phone"] .chat-voice-section[data-place="home"] .chat-voice-people {
  margin: 0 0 8px;
  padding: 0 max(16px, env(safe-area-inset-right)) 0 calc(max(16px, env(safe-area-inset-left)) + 36px);
}

html[data-chat-layout="phone"] .chat-voice-section[data-place="home"] .chat-voice-person {
  min-height: 36px;
  font-size: 15px;
}

html[data-chat-layout="phone"] .chat-voice-section[data-place="home"] .chat-avatar-small {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  font-size: 12px;
}

/* ------------------------------------------------------------------------- devices */

.chat-voice-devices {
  display: grid;
  gap: 14px;
  padding: 4px 0 8px;
}

.chat-voice-devices select {
  min-height: 44px;
}

.chat-voice-devices-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.chat-voice-devices-note:empty {
  display: none;
}

/* ------------------------------------------------------------------------- the voice stage */

/* An open voice room's "Voice" tab: it fills the conversation pane, the call's controls at its foot. */
.chat-voice-stage {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 100%;
  padding: 18px 22px 0;
  background: linear-gradient(180deg, var(--panel-raised), var(--panel-solid) 280px);
}

.chat-voice-stage-head {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.chat-voice-stage-icon {
  display: inline-grid;
  flex: none;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 12px;
  background: var(--cyan-soft);
  color: var(--cyan);
}

.chat-voice-stage-icon .chat-voice-icon {
  width: 22px;
  height: 22px;
}

.chat-voice-stage-name {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  font-size: 20px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-voice-stage-count {
  flex: none;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--cyan-soft);
  color: var(--cyan);
  font-size: 13px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

.chat-voice-stage > .chat-voice-watch {
  align-self: center;
  width: auto;
  padding: 0 22px;
}

/* The tiles (or "Nobody's here yet") sit in the middle of the stage, "Join voice" or the controls at its foot. */
.chat-voice-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(172px, 208px));
  gap: 14px;
  justify-content: center;
  margin: auto 0;
  padding: 0;
  list-style: none;
}

.chat-voice-tile {
  display: grid;
  justify-items: center;
  gap: 8px;
  min-width: 0;
  padding: 18px 10px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel-solid);
  box-shadow: 0 2px 10px rgba(20, 33, 38, 0.05);
}

.chat-voice-tile[data-speaking="true"] {
  border-color: rgba(53, 111, 29, 0.55);
}

.chat-voice-tile-avatar {
  display: inline-flex;
  border-radius: 50%;
  transition: box-shadow 120ms ease-out;
}

.chat-voice-tile .chat-avatar {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  font-size: 26px;
}

.chat-voice-tile .chat-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

/* The speaking ring: a gap in the tile's colour, then the ring, pulsing while the person talks. */
.chat-voice-tile[data-speaking="true"] .chat-voice-tile-avatar {
  box-shadow:
    0 0 0 3px var(--panel-solid),
    0 0 0 6px var(--lime);
  animation: chat-voice-speaking 1.1s ease-in-out infinite;
}

@keyframes chat-voice-speaking {
  50% {
    box-shadow:
      0 0 0 3px var(--panel-solid),
      0 0 0 9px rgba(53, 111, 29, 0.45);
  }
}

.chat-voice-tile-name {
  max-width: 100%;
  overflow: hidden;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-voice-tile[data-me="true"] .chat-voice-tile-name {
  font-weight: 750;
}

.chat-voice-tile-marks {
  display: flex;
  gap: 6px;
  align-items: center;
  min-height: 22px;
}

.chat-voice-tile-badge {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--cyan-soft);
  color: var(--cyan);
  font-size: 12px;
  font-weight: 750;
}

.chat-voice-empty {
  display: grid;
  justify-items: center;
  gap: 6px;
  margin: auto 0;
  padding: 24px 16px;
  color: var(--muted);
  text-align: center;
}

.chat-voice-empty-icon {
  display: inline-grid;
  width: 64px;
  height: 64px;
  place-items: center;
  margin-bottom: 6px;
  border-radius: 50%;
  background: var(--cyan-soft);
  color: var(--cyan);
}

.chat-voice-empty-icon .chat-voice-icon {
  width: 30px;
  height: 30px;
}

.chat-voice-empty-title {
  margin: 0;
  color: var(--text);
  font-size: 18px;
  font-weight: 750;
}

.chat-voice-empty-hint {
  margin: 0;
}

/* "Join voice" or the call's controls, kept in view at the bottom of the pane. */
.chat-voice-stage-foot {
  position: sticky;
  bottom: 0;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  padding: 14px 0 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), var(--panel-solid) 32%);
}

.chat-voice-join {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  min-width: 200px;
  min-height: 52px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  background: var(--lime);
  color: #fff;
  font-size: 16px;
  font-weight: 750;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(53, 111, 29, 0.28);
}

.chat-voice-join:hover:not(:disabled) {
  background: #2b5c17;
}

.chat-voice-join:disabled {
  background: var(--amber);
  box-shadow: none;
  cursor: default;
}

.chat-voice-join .chat-voice-icon {
  width: 22px;
  height: 22px;
}

.chat-voice-stage-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
}

.chat-voice-stage-controls .chat-voice-control {
  flex: none;
  width: 52px;
  min-height: 52px;
  padding: 0;
  border-radius: 50%;
}

.chat-voice-stage-controls .chat-voice-share {
  width: auto;
  min-height: 52px;
  padding: 0 20px;
  border-radius: 999px;
}

/* ------------------------------------------------------------------------- shared screens (viewer) */

/* On the stage of the call's room the shared screen takes the room the stage has, above a strip of
   small tiles; the stage then fits the pane instead of scrolling. */
.chat-screen-panel {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 240px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel-solid);
}

.chat-voice-stage:has(> .chat-screen-panel:not([hidden])) {
  height: 100%;
  min-height: 420px;
  gap: 12px;
}

.chat-voice-stage:has(> .chat-screen-panel:not([hidden])) .chat-voice-tiles {
  flex: none;
  grid-auto-columns: minmax(150px, 190px);
  grid-auto-flow: column;
  grid-template-columns: none;
  justify-content: start;
  margin: 0;
  padding-bottom: 2px;
  overflow-x: auto;
}

.chat-voice-stage:has(> .chat-screen-panel:not([hidden])) .chat-voice-tile {
  grid-template-columns: auto minmax(0, 1fr);
  justify-items: start;
  align-items: center;
  gap: 4px 10px;
  padding: 8px 12px;
}

.chat-voice-stage:has(> .chat-screen-panel:not([hidden])) .chat-voice-tile-avatar {
  grid-row: span 2;
}

.chat-voice-stage:has(> .chat-screen-panel:not([hidden])) .chat-voice-tile .chat-avatar {
  width: 40px;
  height: 40px;
  font-size: 15px;
}

.chat-voice-stage:has(> .chat-screen-panel:not([hidden])) .chat-voice-tile-marks {
  min-height: 0;
}

.chat-voice-stage:has(> .chat-screen-panel:not([hidden])) .chat-voice-stage-foot {
  padding: 4px 0 12px;
}

.chat-screen {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 8px;
  height: 100%;
  min-width: 0;
  min-height: 0;
}

.chat-screen-head {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
  min-width: 0;
}

.chat-screen-title {
  flex: 1 1 12em;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  font-size: 14px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* A dot in the call's colour: this is live. */
.chat-screen-title::before {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--cyan);
  vertical-align: 1px;
  content: "";
}

.chat-screen-switcher,
.chat-screen-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chat-screen-pick,
.chat-screen-control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel-solid);
  color: var(--muted-bright);
  font-weight: 650;
  cursor: pointer;
}

.chat-screen-control {
  padding: 0;
}

.chat-screen-pick:hover,
.chat-screen-control:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.chat-screen-pick[aria-pressed="true"] {
  border-color: var(--cyan);
  background: var(--cyan-soft);
  color: var(--cyan);
}

.chat-screen-control .chat-voice-icon {
  width: 20px;
  height: 20px;
}

/* The shared screen fits the viewer's width and height; the rest is dark. */
.chat-screen-frame {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #0b1317;
}

.chat-screen-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #0b1317;
}

.chat-screen:fullscreen {
  height: 100%;
  padding: 10px;
  background: #0b1317;
  color: #fff;
}

.chat-screen:fullscreen .chat-screen-frame {
  border-radius: 0;
}

/* The phone's sheet of a shared screen covers the whole screen. */
dialog.chat-sheet-host[data-screen="on"] .chat-sheet {
  max-width: none;
  height: 100%;
  max-height: none;
  padding-top: env(safe-area-inset-top);
  border-radius: 0;
  background: #0b1317;
  color: #fff;
}

dialog.chat-sheet-host[data-screen="on"] .chat-sheet-handle::before {
  background: rgba(255, 255, 255, 0.5);
}

dialog.chat-sheet-host[data-screen="on"] .chat-sheet-body {
  display: grid;
  padding: 0 8px 8px;
  overflow: hidden;
}

dialog.chat-sheet-host[data-screen="on"] .chat-screen-frame {
  border-radius: 0;
}

dialog.chat-sheet-host[data-screen="on"] .chat-screen-pick,
dialog.chat-sheet-host[data-screen="on"] .chat-screen-control {
  border-color: rgba(255, 255, 255, 0.3);
  background: transparent;
  color: #fff;
}

dialog.chat-sheet-host[data-screen="on"] .chat-screen-pick[aria-pressed="true"] {
  background: rgba(255, 255, 255, 0.16);
}

/* ------------------------------------------------------------------------- the stage on a phone */

html[data-chat-layout="phone"] .chat-voice-stage {
  gap: 14px;
  padding: 14px max(14px, env(safe-area-inset-right)) 0 max(14px, env(safe-area-inset-left));
}

html[data-chat-layout="phone"] .chat-voice-tiles {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  justify-content: stretch;
}

html[data-chat-layout="phone"] .chat-voice-tile .chat-avatar {
  width: 64px;
  height: 64px;
  font-size: 22px;
}

html[data-chat-layout="phone"] .chat-voice-stage > .chat-voice-watch {
  align-self: stretch;
  min-height: 48px;
}

html[data-chat-layout="phone"] .chat-voice-stage-foot {
  padding-bottom: max(14px, env(safe-area-inset-bottom));
}

@media (prefers-reduced-motion: reduce) {
  .chat-voice-avatar,
  .chat-voice-tile-avatar {
    transition: none;
  }

  .chat-voice-tile[data-speaking="true"] .chat-voice-tile-avatar {
    animation: none;
  }
}
