.role-switch {
  display: inline-grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  gap: 4px;
  min-height: 44px;
  padding: 4px;
  border: 1px solid #d5e2ef;
  border-radius: 12px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 5px 14px rgba(18, 48, 90, .07);
}

.role-switch button,
.role-switch a {
  min-width: 0;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 0;
  border-radius: 8px;
  padding: 0 7px;
  background: transparent;
  color: #52647c;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  text-align: center;
  touch-action: manipulation;
  white-space: nowrap;
}

.role-switch button:hover,
.role-switch a:hover {
  background: #edf4fb;
  color: #123d7a;
}

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

.role-switch svg {
  width: 15px;
  height: 15px;
  stroke-width: 2.2;
  flex: 0 0 15px;
}

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

  .role-switch button,
  .role-switch a {
    width: 100%;
    min-width: 0;
    padding: 0 5px;
    font-size: 12px;
  }
}
