/* The shared call surface is presentation only: Text, Air and the admitted third seat keep separate lifecycles. */
/* ── The search: a lit core with rings going out, what is searched and for how long ── */
.chat-lc-seek { position: relative; display: grid; place-items: center; width: 9rem; aspect-ratio: 1; }
.chat-lc-seek-ring {
  position: absolute;
  inset: 26%;
  border: 1.5px solid color-mix(in srgb, var(--ds-ink) 35%, transparent);
  border-radius: 50%;
  opacity: 0;
  animation: lc-seek 2.4s cubic-bezier(.2, .6, .3, 1) infinite;
}
.chat-lc-seek-ring:nth-child(2) { animation-delay: .8s; }
.chat-lc-seek-ring:nth-child(3) { animation-delay: 1.6s; }
@keyframes lc-seek { from { opacity: .75; transform: scale(.9); } to { opacity: 0; transform: scale(2.1); } }
.chat-lc-seek-core {
  position: relative;
  display: grid;
  place-items: center;
  width: 4.5rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--lc-accent-gradient);
  box-shadow: none;
  color: var(--lc-on-button);
}
.chat-lc-radar { width: 30px; height: 30px; stroke-width: 1.75; animation: lc-radar 2.4s ease-in-out infinite; }
@keyframes lc-radar { 50% { transform: translate(2px, -2px) rotate(-8deg); } }
.chat-lc-search-overlay .chat-lc-held-text { font: 700 var(--ds-fs-display)/1.25 var(--lc-font); text-align: center; }
.chat-lc-search-hint {
  max-width: 30ch;
  margin: calc(-1 * var(--ds-space-2)) 0 0;
  color: var(--lc-muted);
  font: 500 var(--ds-fs-body)/1.4 var(--lc-font);
  font-variant-numeric: tabular-nums;
  text-align: center;
}
.chat-lc-search-hint:empty { display: none; }

/* ── The plate of the call ── */
/* The plate of a call sits inside the chat screen, which already keeps clear of the notch and the
   home indicator at its top. What it must add is its own horizontal room and, on a phone held
   sideways, the notch on the side: without it the round buttons slide under the cut-out. The values
   come from the safe-area insets, not from numbers tuned to one phone. */
.chat-call, .chat-text-third {
  --seat-self: light-dark(#b53689, #f27acc);
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-auto-rows: max-content;
  justify-items: center;
  gap: var(--ds-space-4);
  box-sizing: border-box;
  align-self: center;
  width: min(680px, var(--chat-column-width) - 2 * max(var(--ds-space-3), var(--ds-safe-left), var(--ds-safe-right)));
  margin: var(--ds-space-2) var(--ds-safe-right) 0 var(--ds-safe-left);
  min-width: 0;
  min-height: 0;
  padding-inline: clamp(10px, 4vw, var(--ds-space-4));
  border-radius: var(--ds-radius-card);
  background: var(--ds-surface-raised);
  box-shadow: var(--ds-shadow-card);
}
.chat-call[hidden], .chat-call-invite[hidden] { display: none; }
/* Portrait rings are local presentation, not identity, status, or a host rank. */
.chat-call-person { display: grid; justify-items: center; gap: var(--ds-space-2); min-width: 0; width: 100%; text-align: center; }
.chat-call-orbit { display: grid; justify-items: center; align-items: center; gap: var(--ds-space-3); width: 100%; min-width: 0; }
.chat-call-roster { display: flex; justify-content: center; align-items: center; gap: var(--ds-space-3); min-width: 0; }
.chat-call-avatar {
  position: relative; display: grid; place-items: center; box-sizing: border-box;
  inline-size: var(--ds-touch); aspect-ratio: 1;
  padding: 3px; border: 2px solid var(--ds-edge); border-radius: 50%;
  color: var(--ds-ink); background: var(--ds-surface-raised);
  --seat-accent: var(--ds-info);
  box-shadow: none;
  transition: box-shadow var(--ds-dur-fast) linear;
}
button.chat-call-avatar { min-block-size: var(--ds-touch); cursor: pointer; }
#chat-call-self, [data-third-face="self"] { --seat-accent: var(--seat-self); }
#chat-call-avatar { --seat-accent: var(--ds-amber); }
.chat-call-avatar.is-speaking { box-shadow: 0 0 0 calc(2px + var(--voice-level, 0) * 4px) color-mix(in srgb, var(--ds-green) 38%, transparent); }
.chat-call-avatar:focus-visible { outline: var(--ds-focus-ring); outline-offset: 2px; }
.call-face { display: grid; inline-size: 100%; block-size: 100%; }
.call-face .lc-avatar-face { inline-size: 100%; block-size: 100%; border-radius: 50%; background: var(--ds-surface-inset); }
.call-face .lc-icon { inline-size: 56%; block-size: 56%; }
.call-mic-badge {
  position: absolute; inset: auto auto -3px 50%; translate: -50% 0;
  display: grid; place-items: center; width: 19px; height: 19px; pointer-events: none;
  border-radius: 50%; color: var(--ds-on-danger); background: var(--ds-danger); box-shadow: 0 0 0 2px var(--ds-surface-raised);
}
.call-mic-badge[hidden] { display: none; }
.call-mic-badge .lc-icon { width: 12px; height: 12px; }
.chat-call-meta {
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 6px; align-items: center; width: 100%; min-width: 0;
  color: var(--lc-muted); font: 650 var(--ds-fs-micro)/1.2 var(--lc-font);
}
.chat-call-time { grid-column: 2; grid-row: 1; color: var(--lc-text); font-size: var(--ds-fs-control); font-weight: 770; font-variant-numeric: tabular-nums; }
.chat-call-count { grid-column: 3; grid-row: 1; text-align: start; text-wrap: balance; overflow-wrap: anywhere; }
.chat-call-state { max-width: min(100%, 34ch); margin: 2px 0 0; color: var(--lc-muted); font: 600 var(--ds-fs-label)/1.35 var(--lc-font); overflow-wrap: anywhere; text-wrap: balance; }
.chat-call-state:empty { display: none; }
.chat-call[data-recovering] .chat-call-state, .chat-call[data-link-lost] .chat-call-state { color: var(--lc-text); }
.call-quality { grid-column: 1; grid-row: 1; justify-self: end; display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.call-quality[hidden] { display: none; }
.call-quality i { display: block; width: 3px; border-radius: var(--ds-radius-xs); background: color-mix(in srgb, var(--lc-muted) 45%, transparent); }
.call-quality i:nth-child(1) { height: 5px; }
.call-quality i:nth-child(2) { height: 8px; }
.call-quality i:nth-child(3) { height: 12px; }
.call-quality[data-level="good"] i { background: var(--ds-green); }
.call-quality[data-level="fair"] i:nth-child(-n + 2) { background: var(--ds-amber); }
.call-quality[data-level="poor"] i:nth-child(1) { background: var(--ds-red); }
.call-quality[data-level="lost"] i { background: var(--lc-link-warning); }
.hub-action.chat-call-play {
  width: auto; max-width: 100%; height: auto; min-height: var(--ds-touch);
  padding: var(--ds-space-2) var(--ds-space-3); white-space: normal; text-align: center; overflow-wrap: anywhere;
}

/* Named icon controls; optional explanations use the same disclosure as other pages. */
.chat-call-controls { display: flex; flex-wrap: wrap; justify-content: center; width: 100%; gap: clamp(8px, 3vw, 18px); }
.call-ctl {
  display: grid;
  place-items: center;
  min-inline-size: var(--ds-touch);
  min-block-size: var(--ds-touch);
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--lc-text);
  cursor: pointer;
}
.call-ctl:disabled { cursor: not-allowed; opacity: var(--ds-disabled-opacity); }
.call-ctl:focus-visible { outline: none; }
.call-ctl:focus-visible .call-disc { outline: var(--ds-focus-ring); outline-offset: var(--ds-focus-offset); }
.call-disc {
  --ring: calc(var(--voice-level, 0) * 10px);
  position: relative;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--lc-text) 9%, transparent);
  color: var(--lc-text);
  transition: background-color var(--ds-dur) ease, color var(--ds-dur) ease, box-shadow var(--ds-dur-fast) linear;
}
.call-disc .lc-icon { width: 24px; height: 24px; }
/* Off: a contrasting disc and a crossed icon. */
.call-ctl[aria-pressed="true"] .call-disc { background: var(--lc-text); color: var(--lc-bg); }
/* The selected output uses a neutral surface; the pressed state remains available to assistive technology. */
#chat-call-output[aria-pressed="true"] .call-disc {
  background: var(--ds-control-tint);
  color: var(--ds-ink);
  box-shadow: none;
}
/* One's own voice lights the microphone, so a muted or a dead microphone is seen at once. */
.call-ctl.is-speaking .call-disc { box-shadow: 0 0 0 var(--ring) color-mix(in srgb, var(--ds-green) 30%, transparent); }
.call-ctl--end .call-disc { background: var(--ds-danger); color: var(--ds-on-danger); }
/* Header tools stay out of the portraits and controls even at short heights. */
.chat-call-toolbar { display: flex; justify-content: flex-end; align-items: center; inline-size: 100%; }
.chat-call .chat-call-back { display: none; }
#screen-text-chat[data-call-expanded="true"] .chat-call-back { display: grid; margin-inline-end: auto; }
.chat-call .chat-call-expand { border-radius: 50%; }
.chat-call-expand .lc-icon { width: 21px; height: 21px; }
.chat-call-help { width: min(100%, 46ch); text-align: start; }
.chat-call-help > p { margin: 0; }
#chat-call:not([data-mesh]) .chat-call-mesh-note { display: none; }
.chat-call {
  flex: 0 1 auto; overflow-y: auto;
  gap: clamp(8px, 1.5dvh, 16px); padding-block: var(--ds-space-2) var(--ds-space-4);
  background: var(--ds-surface-raised); box-shadow: var(--ds-shadow-card);
}
.call-disc { width: clamp(var(--ds-touch), 12vw, 55px); height: auto; aspect-ratio: 1; }
#screen-text-chat:not([data-call-expanded]) #chat-call .chat-call-avatar { inline-size: clamp(64px, 21vw, 92px); }
#screen-text-chat:not([data-call-expanded]) #chat-call .chat-call-roster { gap: clamp(12px, 4vw, 24px); }
#chat-call .chat-call-count { font-size: var(--ds-fs-label); }
/* At larger text sizes keep the whole participant count beneath the clock. */
#screen-text-chat:not([data-call-expanded]) .chat-call-meta { container-type: inline-size; }
@container (max-width: 14rem) {
  #screen-text-chat:not([data-call-expanded]) #chat-call .chat-call-count {
    grid-column: 1 / -1; grid-row: 2; text-align: center;
  }
}
#screen-text-chat[data-call-expanded="true"] > :is(.chat-lc-head,.chat-lc-messages,.chat-lc-footer,.chat-lc-typing,.chat-lc-jump,.chat-lc-connection) { display: none; }
#screen-text-chat[data-call-expanded="true"] .chat-call:not([hidden]) {
  display: grid; grid-template: max-content minmax(min-content, 1fr) / minmax(0, 1fr); justify-items: center; align-items: center;
  align-self: stretch; width: auto; min-height: 0; flex: 1; overflow: auto; border-radius: 0;
  margin: 0 var(--chat-column-right) 0 var(--chat-column-left);
  padding: calc(var(--ds-space-2) + var(--ds-safe-top)) max(14px, var(--ds-safe-right)) max(22px, var(--ds-safe-bottom)) max(14px, var(--ds-safe-left));
  gap: clamp(12px, 3dvh, 28px); box-shadow: none;
}
#screen-text-chat[data-call-expanded="true"] .chat-call:has(> .chat-call-help:not([hidden])) {
  grid-template-rows: max-content max-content minmax(min-content, 1fr);
}
#screen-text-chat[data-call-expanded="true"] .chat-call-orbit {
  --call-seat-size: clamp(var(--ds-touch), 21cqi, 82px);
  --call-ring-inset: calc(var(--call-seat-size) / 2 + var(--ds-space-2));
  position: relative; isolation: isolate; width: min(100%, clamp(232px, 64dvh, 400px));
  aspect-ratio: 1; container-type: inline-size; gap: 0;
}
#screen-text-chat[data-call-expanded="true"] .chat-call-orbit::before {
  content: ''; position: absolute; z-index: -1; inset: var(--call-ring-inset); border-radius: 50%;
  border: 2px solid var(--ds-edge);
}
#screen-text-chat[data-call-expanded="true"] .chat-call-roster { position: absolute; inset: 0; display: block; padding: 0; pointer-events: none; background: none; box-shadow: none; }
#screen-text-chat[data-call-expanded="true"] .chat-call-avatar {
  position: absolute; top: 50%; left: 50%; inline-size: var(--call-seat-size); padding: 4px;
  translate: -50% -50%; pointer-events: auto;
  /* Move along the radius, then undo the rotation so the face and mute badge stay upright. */
  transform: rotate(var(--call-seat-angle)) translateX(calc(50cqi - var(--call-ring-inset))) rotate(calc(-1 * var(--call-seat-angle)));
  box-shadow: none;
}
#screen-text-chat[data-call-expanded="true"] #chat-call-avatar.is-speaking { box-shadow: 0 0 0 4px color-mix(in srgb, var(--ds-green) 33%, transparent), 0 0 18px var(--ds-green); }
#screen-text-chat[data-call-expanded="true"] .call-mic-badge { width: 25px; height: 25px; }
#screen-text-chat[data-call-expanded="true"] .call-mic-badge .lc-icon { width: 15px; height: 15px; }
/* The open window keeps the whole reading in its centre disc: duration, how many, and the bars —
   the owner's reference of 28.11.2026. The block is centred as a whole, not the clock alone. */
#screen-text-chat[data-call-expanded="true"] .chat-call-meta {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  inline-size: min(44%, 174px); aspect-ratio: 1; border-radius: 50%;
  background: var(--ds-surface-inset);
  box-shadow: none;
}
#screen-text-chat[data-call-expanded="true"] .chat-call-time { font-size: min(2.35rem, 9cqi); white-space: nowrap; }
#screen-text-chat[data-call-expanded="true"] .chat-call-count { text-align: center; font-size: min(.8rem, 4cqi); }
#screen-text-chat[data-call-expanded="true"] .call-quality { margin-block-start: 4px; }
#screen-text-chat[data-call-expanded="true"] #chat-call [data-peer-overflow] { display: none; }
/* The corner badge is a pill-only affordance; the open window reads its own centre. */
#screen-text-chat[data-call-expanded="true"] .call-pill-meter { display: none; }
@media (max-height: 490px) {
  .chat-call { gap: 8px; padding-block: 10px; }
  #screen-text-chat[data-call-expanded="true"] .chat-call:not([hidden]) { gap: 18px; }
}

/* ── Three people in Text; the center is always the current viewer ── */
.chat-text-third {
  flex: 0 1 auto; overflow: auto; gap: var(--ds-space-2); padding-block: var(--ds-space-3);
  color: var(--ds-ink);
}
.third-roster { gap: clamp(4px, 2vw, 12px); }
.third-roster .chat-call-avatar { inline-size: clamp(48px, 18vw, 78px); }
.third-roster [data-third-face="self"] { inline-size: clamp(58px, 23vw, 100px); }
.third-roster [data-third-face="right"] { --seat-accent: var(--ds-violet); }
.chat-text-third[data-entrant] [data-third-face="right"] { --seat-accent: var(--ds-amber); }
.third-roster-count {
  margin: 0; color: var(--ds-ink); text-align: center;
  font: 750 var(--ds-fs-control)/1.25 var(--lc-font);
}
@media (max-height: 490px) {
  #screen-text-chat:not([data-call-expanded]) #chat-call .chat-call-avatar { inline-size: 58px; }
  .third-roster .chat-call-avatar { inline-size: 46px; }
  .third-roster [data-third-face="self"] { inline-size: 58px; }
}

/* The same call stage grows a roster, rather than mounting a second page. */
#screen-text-chat[data-call-expanded] > :is(#chat-session-mode,#chat-group-roster,#chat-text-third,#chat-group-vote) { display: none; }
#chat-call[data-mesh] .chat-call-avatar, .third-roster .chat-call-avatar[data-author-color] { --seat-accent: var(--chat-author, var(--ds-edge)); }
#chat-call[data-mesh] .chat-call-roster { flex-wrap: wrap; }
#screen-text-chat:not([data-call-expanded]) #chat-call[data-mesh] .chat-call-count {
  grid-column: 1 / -1; grid-row: 2; text-align: center; overflow-wrap: normal;
}
/* The compact Air header names the mode; the call plate needs no separate total. */
#screen-text-chat[data-voice="true"]:not([data-call-expanded]):has(> #chat-session-mode:not([hidden])) #chat-call[data-mesh] .chat-call-count { display: none; }
#screen-text-chat:not([data-call-expanded]) #chat-call[data-mesh] .chat-call-roster { gap: 6px; }
#screen-text-chat:not([data-call-expanded]) #chat-call[data-mesh] .chat-call-avatar { inline-size: clamp(44px, 13vw, 72px); }
/* The third and later peer seats hide. Counted by peer siblings, not by element type: the pill also
   carries the link meter and the chevron, and they must not shift which portraits are shown. */
#screen-text-chat:not([data-call-expanded]) #chat-call[data-mesh] [data-peer-seat] ~ [data-peer-seat] ~ [data-peer-seat] { display: none; }
#chat-call [data-peer-overflow] { display: grid; place-items: center; font-variant-numeric: tabular-nums; }

/* ── The collapsed call is a pill of overlapping portraits ──────────────────────────────────────
   Owner's reference, 28.11.2026: one rounded capsule, portraits laid over each other with a ring
   between them, «+N» for the rest and a chevron that opens the window. The disc on its corner is the
   link meter itself, not a second indicator: the same three bars, the same colours, a disc behind
   them. Only the collapsed shape changes: the seats, their number, the overflow rule, the timer, the
   controls and the expanded orbit are exactly what they were. */
#screen-text-chat:not([data-call-expanded]) #chat-call .chat-call-roster {
  --call-pill-face: clamp(var(--ds-touch), 12vw, 52px);
  --call-pill-overlap: calc(var(--call-pill-face) * .32);
  /* The room the chevron takes in the row. Its hit area stays 44px; only the empty
     halves of that box stop pushing the caption away (owner, image-6). */
  --call-pill-chevron: 32px;
  position: relative; justify-content: flex-start; gap: 0;
  max-inline-size: 100%; padding: 5px 8px;
  border-radius: var(--ds-radius-full);
  background: var(--ds-surface-raised);
  box-shadow: var(--ds-shadow-card);
}
/* The group row keeps no gaps of its own: the overlap below is the only spacing the pill uses. */
#screen-text-chat:not([data-call-expanded]) #chat-call[data-mesh] .chat-call-roster { gap: 0; }
/* A ring of the capsule's own surface separates the overlapping discs; later seats paint on top. */
#screen-text-chat:not([data-call-expanded]) #chat-call .chat-call-avatar {
  inline-size: var(--call-pill-face);
  box-shadow: 0 0 0 3px var(--ds-surface-raised);
}
/* Every portrait after the first slides over its neighbour. A general sibling, not an adjacent one:
   the hidden pair seat and the link meter also live in this row and must not break the chain. */
#screen-text-chat:not([data-call-expanded]) #chat-call .chat-call-avatar ~ .chat-call-avatar {
  margin-inline-start: calc(-1 * var(--call-pill-overlap));
}
/* Speaking still shows: the ring stays, the green halo grows outside it. */
#screen-text-chat:not([data-call-expanded]) #chat-call .chat-call-avatar.is-speaking {
  box-shadow: 0 0 0 3px var(--ds-surface-raised),
    0 0 0 calc(5px + var(--voice-level, 0) * 4px) color-mix(in srgb, var(--ds-green) 38%, transparent);
}
/* «+N» is a caption beside the portraits, not one more seat. The mesh selector is repeated on
   purpose: the group rules above size every .chat-call-avatar as a seat, and without an equally
   specific rule the caption kept a seat-wide box — the empty half of it was the owner's red block. */
#screen-text-chat:not([data-call-expanded]) #chat-call [data-peer-overflow],
#screen-text-chat:not([data-call-expanded]) #chat-call[data-mesh] [data-peer-overflow] {
  order: 5; inline-size: auto; aspect-ratio: auto; margin-inline-start: 0; padding: 0 0 0 var(--ds-space-2);
  border: 0; background: none; box-shadow: none;
  color: var(--lc-muted); font: 750 var(--ds-fs-control)/1 var(--lc-font);
}
#screen-text-chat:not([data-call-expanded]) #chat-call .chat-call-expand {
  order: 10; display: grid; place-items: center; flex: none;
  inline-size: var(--ds-touch); block-size: var(--ds-touch);
  /* A 44px target that occupies only --call-pill-chevron of the row: the negative margins eat the
     empty space around the 20px glyph, so «+N» and the arrow read as one group. */
  margin-inline: calc((var(--call-pill-chevron) - var(--ds-touch)) / 2);
  border-radius: 50%; background: transparent; color: var(--lc-muted);
}
#screen-text-chat:not([data-call-expanded]) #chat-call .chat-call-expand .lc-icon { width: 20px; height: 20px; }
/* The corner badge grows to the right and carries the duration beside the sound bars: one compact
   token instead of a separate line under the portraits. The bars keep their own colours, so the badge
   still says how the link is doing. */
#screen-text-chat:not([data-call-expanded]) #chat-call .call-pill-meter {
  /* Above the portraits (owner, image-6): the seats are positioned too, so without a layer of its
     own the badge — first child of the row — would paint under the disc that covers its corner. */
  position: absolute; z-index: 2; inset-block-start: -12px; inset-inline-start: -8px;
  display: flex; align-items: center; gap: var(--ds-space-2);
  block-size: 30px; padding-inline: 9px 11px;
  border-radius: var(--ds-radius-full); background: var(--ds-ink);
  box-shadow: 0 0 0 3px var(--ds-surface-raised);
}
#screen-text-chat:not([data-call-expanded]) #chat-call .call-pill-meter .call-quality {
  position: static; display: inline-flex; align-items: flex-end; gap: 2px; height: 12px;
}
/* An unknown link still says nothing: the bars appear only when there is a measurement. */
#screen-text-chat:not([data-call-expanded]) #chat-call .call-pill-meter .call-quality[hidden] { display: none; }
#screen-text-chat:not([data-call-expanded]) #chat-call .call-pill-meter .chat-call-time {
  color: var(--ds-surface-raised); font: 750 var(--ds-fs-label)/1 var(--lc-font);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
/* The pill says everything the collapsed call needs. The explanation trigger belongs to the open
   window, the count is already beside the portraits, and the duration moved into the corner badge —
   so the toolbar row and the meta line go away entirely and the portraits rise under the head. */
#screen-text-chat:not([data-call-expanded]) #chat-call .chat-call-toolbar,
#screen-text-chat:not([data-call-expanded]) #chat-call .chat-call-meta,
#screen-text-chat:not([data-call-expanded]) #chat-call .chat-call-count { display: none; }
#screen-text-chat:not([data-call-expanded]) #chat-call { padding-block-start: var(--ds-space-3); }
/* The capsule is the only painted surface: the collapsed stage stops being a card. */
#screen-text-chat:not([data-call-expanded]) #chat-call { background: none; box-shadow: none; }

/* ── An offered call: one line under the head, accept and decline of the same size ── */
.chat-call-invite {
  display: flex;
  align-items: center;
  gap: var(--ds-space-3);
  box-sizing: border-box;
  align-self: center;
  width: min(680px, var(--chat-column-width) - 2 * var(--ds-space-3));
  margin: var(--ds-space-2) var(--ds-safe-right) 0 var(--ds-safe-left);
  padding: var(--ds-space-2) var(--ds-space-2) var(--ds-space-2) var(--ds-space-3);
  border-radius: var(--ds-radius-full);
  background: color-mix(in srgb, var(--lc-card) 92%, transparent);
  box-shadow: none;

}
.chat-call-invite-icon { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 50%; background: color-mix(in srgb, var(--ds-green) 18%, transparent); color: var(--ds-green); }
.chat-call-invite-icon .lc-icon { width: 18px; height: 18px; }
.chat-call-invite-text { flex: 1; min-width: 0; overflow: hidden; font: 700 var(--ds-fs-control)/1.3 var(--lc-font); text-overflow: ellipsis; white-space: nowrap; }
.chat-call-round { display: grid; place-items: center; width: var(--ds-touch); height: var(--ds-touch); flex: none; border: 0; border-radius: 50%; cursor: pointer; }
.chat-call-round[hidden] { display: none; }
.chat-call-round:focus-visible { outline: var(--ds-focus-ring); outline-offset: var(--ds-focus-offset); }
.chat-call-round .lc-icon { width: 20px; height: 20px; }
.chat-call-round--end { background: var(--ds-danger); color: var(--ds-on-danger); }
.chat-call-round--accept { background: var(--ds-green); color: #ffffff; }
.chat-call-invite[data-mode="in"] .chat-call-invite-icon { animation: lc-call-ring 1.2s ease-in-out infinite; }
@keyframes lc-call-ring { 50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--ds-green) 22%, transparent); } }

@media (prefers-reduced-motion: reduce) {
  .chat-call, .chat-call-invite, .chat-call-invite-icon, .chat-lc-radar { animation: none !important; }
  .chat-lc-seek-ring { animation: none; opacity: .35; }
  .chat-lc-seek-ring:nth-child(2) { inset: 14%; opacity: .22; }
  .chat-lc-seek-ring:nth-child(3) { inset: 2%; opacity: .12; }
  .call-disc, .chat-call-avatar { transition: none; }
}
html[data-hub-motion="reduced"] :is(.chat-call, .chat-call-invite, .chat-call-invite-icon, .chat-lc-radar) { animation: none !important; }
html[data-hub-motion="reduced"] .chat-lc-seek-ring { animation: none; opacity: .35; }
html[data-hub-motion="reduced"] .chat-lc-seek-ring:nth-child(2) { inset: 14%; opacity: .22; }
html[data-hub-motion="reduced"] .chat-lc-seek-ring:nth-child(3) { inset: 2%; opacity: .12; }
@media (forced-colors: active) {
  .chat-text-third, .chat-call, .chat-call-roster, .chat-call-avatar, .chat-call-invite, .call-disc, .chat-lc-seek-core { border: 1px solid ButtonText; box-shadow: none; }
  #screen-text-chat:not([data-call-expanded]) #chat-call .call-pill-meter { border: 1px solid ButtonText; box-shadow: none; }
  .call-ctl[aria-pressed="true"] .call-disc { forced-color-adjust: none; background: Highlight; color: HighlightText; }
}

.chat-call-volume:not([hidden]) {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  column-gap: var(--ds-space-3);
  padding: var(--ds-space-2) var(--ds-space-3);
  color: var(--lc-text);
  font: 600 var(--ds-fs-label)/1.35 var(--lc-font);
}
.chat-call-volume > input {
  grid-column: 1 / -1;
  width: 100%;
  min-height: var(--ds-touch);
  margin: 0;
  accent-color: var(--lc-accent);
}
#chat-call-volume-value { color: var(--lc-muted); font-variant-numeric: tabular-nums; }
