button.shared-settings-button {
  box-sizing: border-box;
  display: inline-grid;
  place-items: center;
  inline-size: 44px;
  min-inline-size: 44px;
  min-block-size: 44px;
  padding: 0;
}

button.shared-settings-button::before {
  content: "";
  display: block;
  inline-size: 22px;
  block-size: 22px;
  background-color: currentColor;
  -webkit-mask: url("./settings-gear.svg") center / contain no-repeat;
  mask: url("./settings-gear.svg") center / contain no-repeat;
}

@media (forced-colors: active) {
  button.shared-settings-button::before {
    forced-color-adjust: none;
    background-color: ButtonText;
  }
}

/* Keep the full screen control readable on desktop and compact on phones. */
#fullscreen { min-width: 44px; min-height: 44px; font-size: inherit; }
#fullscreen .fullscreen-icon { display: none; font-size: 1.25rem; }
@media (max-width: 40rem) {
  #fullscreen .fullscreen-icon { display: inline; }
  #fullscreen .fullscreen-label { display: none; }
}
