.role-switch {
  display: inline-grid;
  grid-template-columns: repeat(3, minmax(48px, 1fr));
  align-items: center;
  gap: 3px;
  min-height: 42px;
  padding: 3px;
  border: 1px solid #cfe0f1;
  border-radius: 22px;
  background: rgba(248, 251, 255, .96);
}

.role-switch button {
  min-width: 48px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 18px;
  padding: 0 10px;
  background: transparent;
  color: #52647c;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

.role-switch button:hover {
  background: #e8f1fb;
  color: #123d7a;
}

.role-switch button.active,
.role-switch button[aria-pressed="true"] {
  background: #123d7a;
  color: #fff;
  box-shadow: 0 3px 8px rgba(18, 61, 122, .18);
}

@media (max-width: 560px) {
  .role-switch {
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .role-switch button {
    width: 100%;
    min-width: 0;
    padding: 0 6px;
  }
}
