body:has(#call:not([hidden])) {
  margin: 0;
  background: #303438;
  color: white;
  font: 14px/1.4 Inter, system-ui, sans-serif;
}

main:has(#call:not([hidden])) {
  box-sizing: border-box;
  height: 100vh;
  height: 100dvh;
  padding: clamp(8px, 2vmin, 24px);
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
}

#call:not([hidden]) {
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: clamp(4px, 1.4vmin, 16px);
}

#call header, #call footer, .tile-label {
  display: flex;
  align-items: center;
  gap: 8px;
}
#channel-title { margin: 0; font-size: clamp(18px, 2.4vw, 26px); }
#count { color: #cdd2d6; }
#participants {
  display: grid;
  min-height: 0;
  min-width: 0;
  grid-template-columns: repeat(var(--columns, 1), minmax(0, 1fr));
  grid-template-rows: repeat(var(--rows, 1), minmax(0, 1fr));
  gap: var(--gap, 4px);
}
#call button { font: inherit; color: inherit; cursor: pointer; }
#call button:focus-visible { outline: 3px solid #a4dfff; outline-offset: -3px; }
.tile {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  padding: var(--pad);
  background: #23272b;
  display: grid;
  grid-template-rows: minmax(0, 1fr) var(--label);
  align-items: center;
}
.avatar {
  justify-self: center;
  display: grid;
  place-items: center;
  width: var(--diameter);
  height: var(--diameter);
  border-radius: 50%;
  color: #15191d;
  background: var(--color);
  font-size: calc(var(--diameter) * .41);
  font-weight: 600;
}
.speaking .avatar { outline: 3px solid #6df2ac; outline-offset: 1px; }
.tile-label { gap: 3px; font-size: min(14px, var(--label)); min-width: 0; white-space: nowrap; }
.tile-name { overflow: hidden; text-overflow: ellipsis; }
.tile-muted {
  position: relative;
  width: 1em;
  height: 1em;
  flex: none;
  background: url('/art/microphone.svg') center/contain no-repeat;
}
.tile-muted::after {
  content: '';
  position: absolute;
  top: 47%; left: 0; width: 100%; height: 1.5px;
  background: white; transform: rotate(45deg);
  box-shadow: 0 1px #23272b;
}
#call footer { justify-content: center; }
#call footer button, #participant-detail button {
  background: #181a1c; border: 0; border-radius: 12px; padding: 12px 16px;
}
#microphone::before {
  content: ''; display: inline-block; width: 24px; height: 24px;
  margin-right: 8px; vertical-align: middle;
  background: url('/art/microphone.svg') center/contain no-repeat;
}
#call:not([hidden]) ~ #status {
  width: auto; margin: 4px 0 0; text-align: center; color: #cdd2d6; font-size: 12px;
}
#participant-detail {
  max-width: min(80vw, 28rem); overflow-wrap: anywhere;
  background: #303438; color: white; border: 0; border-radius: 12px;
}
#participant-detail::backdrop { background: rgb(0 0 0 / 60%); }
