.rt-theme-choice {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: .125rem;
  padding: .1875rem;
  border: 1px solid #444956;
  border-radius: .625rem;
  color: #c1c7d2;
  background: #171a22;
  font-family: inherit;
}

.rt-theme-caption {
  padding-inline: .375rem;
  font-size: .875rem;
}

.rt-theme-choice button {
  min-height: 2rem;
  padding: .25rem .5rem;
  border: 1px solid transparent;
  border-radius: .375rem;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: .875rem;
  font-weight: 650;
  cursor: pointer;
}

.rt-theme-choice button:hover,
.rt-theme-choice button[aria-pressed="true"] {
  color: #fff;
  background: #313746;
}

.rt-theme-choice button[aria-pressed="true"] { border-color: #6b7489; }
.rt-theme-choice button:focus-visible { outline: 2px solid currentColor; outline-offset: 1px; }

body[data-theme="light"] .rt-theme-choice {
  border-color: #b7bdc8;
  color: #414858;
  background: #f3f5f9;
}

body[data-theme="light"] .rt-theme-choice button:hover,
body[data-theme="light"] .rt-theme-choice button[aria-pressed="true"] {
  color: #151c2b;
  background: #dfe5ef;
}

body[data-theme="light"] .rt-theme-choice button[aria-pressed="true"] { border-color: #818da4; }

@media (max-width: 40rem) {
  .rt-theme-caption { display: none; }
}

.rt-discord-avatar {
  position: relative;
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  background: #313746;
  color: #fff;
  font-weight: 750;
  line-height: 1;
}

.rt-discord-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rt-discord-avatar img[hidden] { display: none; }
